summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shred.c b/src/shred.c
index fb77dcade..da2b78834 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -1556,7 +1556,7 @@ main (int argc, char **argv)
|| (word32) tmp != tmp
|| ((size_t) (tmp * sizeof (int)) / sizeof (int) != tmp))
{
- error (1, 0, _("%s: invalid number of passes"),
+ error (EXIT_FAILURE, 0, _("%s: invalid number of passes"),
quotearg_colon (optarg));
}
flags.n_iterations = (size_t) tmp;
@@ -1573,7 +1573,7 @@ main (int argc, char **argv)
if (xstrtoumax (optarg, NULL, 0, &tmp, "cbBkKMGTPEZY0")
!= LONGINT_OK)
{
- error (1, 0, _("%s: invalid file size"),
+ error (EXIT_FAILURE, 0, _("%s: invalid file size"),
quotearg_colon (optarg));
}
flags.size = tmp;