From 1c19cdfa999ecbc2512c97c01e4a3e4764a4b9ad Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 3 Dec 2012 16:40:19 -0500 Subject: [PATCH] Follow through on the program's name change. --- hexdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hexdump.c b/hexdump.c index e2fbbba..4732ef9 100644 --- a/hexdump.c +++ b/hexdump.c @@ -223,14 +223,14 @@ main(int argc, char **argv) *cp++ = '\0'; if ((start = getoffs(*argv)) == -1L) { - (void) fputs("hex: start offset no good\n", stderr); + (void) fputs("hexdump: start offset no good\n", stderr); exit(0); } if (cp) if ((length = getoffs(cp)) == -1L) { - (void) fputs("hex: length no good\n", stderr); + (void) fputs("hexdump: length no good\n", stderr); exit(0); } } @@ -249,7 +249,7 @@ main(int argc, char **argv) argc--, argv++; if ((linebytes = getoffs(*argv)) == -1L || linebytes > MAXWIDTH) { - (void) fputs("hex: line width no good\n", stderr); + (void) fputs("hexdump: line width no good\n", stderr); exit(0); } if (linebytes % 2) @@ -257,13 +257,13 @@ main(int argc, char **argv) continue; default: - (void) fprintf(stderr, "hex: no such option as %s\n", *argv); + (void) fprintf(stderr, "hexdump: no such option as %s\n", *argv); exit(0); } } else if ((infile = fopen(*argv, "rb")) == NULL) { - (void) fprintf(stderr, "hex: cannot open %s\n", *argv); + (void) fprintf(stderr, "hexdump: cannot open %s\n", *argv); exit(1); } -- 2.43.0