diff options
author | Sami Kerola <kerolasa@iki.fi> | 2014-09-28 20:51:36 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 11:10:06 +0200 |
commit | 6e1915060aa401bd20f9556374ffc031198322b4 (patch) | |
tree | 54bf65cb87399d7451206d84a34c3881e245f8f3 | |
parent | 16e37abebb5ed7b44f7db9dd6ddd305e1af2549d (diff) | |
download | util-linux-6e1915060aa401bd20f9556374ffc031198322b4.tar.gz |
hexdump: remove deprecation message
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>
-rw-r--r-- | text-utils/hexdump.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index 50b593eb6..afae33472 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -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; |