]> thyrsus.com Git - hexdump.git/commitdiff
Follow through on the program's name change.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 3 Dec 2012 21:40:19 +0000 (16:40 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 3 Dec 2012 21:40:19 +0000 (16:40 -0500)
hexdump.c

index e2fbbba68fcc43b92f5c6ec39573787321daaa92..4732ef93163561fb3d8b973cc5aac1bbcd97d554 100644 (file)
--- 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);
        }