diff options
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r-- | text-utils/hexdump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index 6132bf115..fd4b37d47 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -38,6 +38,8 @@ #include <sys/types.h> #include <stdio.h> #include <string.h> +#include <err.h> +#include <stdlib.h> #include "hexdump.h" #include "nls.h" @@ -57,11 +59,9 @@ int main(int argc, char **argv) if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od")) { newsyntax(argc, &argv); - } else { - fprintf(stderr, - _("Calling hexdump as od has been deprecated in favour to GNU coreutils od.\n")); - return(1); - } + } else + errx(EXIT_FAILURE, _("calling hexdump as od has been deprecated " + "in favour to GNU coreutils od.")); /* figure out the data block size */ for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) { |