]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hexdump: remove deprecation message
authorSami Kerola <kerolasa@iki.fi>
Sun, 28 Sep 2014 19:51:36 +0000 (20:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 10:33:12 +0000 (12:33 +0200)
Message 'calling hexdump as od has been deprecated in favor of GNU
coreutils od' has informed the hexdump not to be used like that for three
and half years, and five releases.  It is time to get rid of notice.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/hexdump.c

index 50b593eb6e428ac0191b4d8df970e382307d2525..afae334722de07f00f84289b58a48444e55a6729 100644 (file)
@@ -179,7 +179,6 @@ int main(int argc, char **argv)
        struct list_head *p;
        struct hexdump_fs *tfs;
        int ret;
-       char *c;
 
        struct hexdump *hex = xcalloc(1, sizeof (struct hexdump));
        hex->length = -1;
@@ -190,11 +189,7 @@ int main(int argc, char **argv)
        textdomain(PACKAGE);
        atexit(close_stdout);
 
-       if (!(c = strrchr(argv[0], 'o')) || strcmp(c, "od")) {
-               argv += parse_args(argc, argv, hex);
-       } else
-               errx(EXIT_FAILURE, _("calling hexdump as od has been deprecated "
-                                    "in favor of GNU coreutils od"));
+       argv += parse_args(argc, argv, hex);
 
        /* figure out the data block size */
        hex->blocksize = 0;