summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shred.c b/src/shred.c
index ba93f80f5..f32a5b834 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -87,6 +87,7 @@
#include "system.h"
#include "argmatch.h"
#include "xdectoint.h"
+#include "die.h"
#include "error.h"
#include "fcntl--.h"
#include "human.h"
@@ -1252,7 +1253,7 @@ main (int argc, char **argv)
case RANDOM_SOURCE_OPTION:
if (random_source && !STREQ (random_source, optarg))
- error (EXIT_FAILURE, 0, _("multiple random sources specified"));
+ die (EXIT_FAILURE, 0, _("multiple random sources specified"));
random_source = optarg;
break;
@@ -1301,7 +1302,7 @@ main (int argc, char **argv)
randint_source = randint_all_new (random_source, SIZE_MAX);
if (! randint_source)
- error (EXIT_FAILURE, errno, "%s", quotef (random_source));
+ die (EXIT_FAILURE, errno, "%s", quotef (random_source));
atexit (clear_random_data);
for (i = 0; i < n_files; i++)