summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorSami Kerola2014-09-28 21:51:36 +0200
committerKarel Zak2014-10-01 12:33:12 +0200
commitbf60e9f12d9bcf7d87581c69cbc103c18f7d001a (patch)
tree1a32f5e62a484d94a4527b43533c0eeddc5fa373 /text-utils/hexdump.c
parentdocs: update deprecation banners (diff)
downloadkernel-qcow2-util-linux-bf60e9f12d9bcf7d87581c69cbc103c18f7d001a.tar.gz
kernel-qcow2-util-linux-bf60e9f12d9bcf7d87581c69cbc103c18f7d001a.tar.xz
kernel-qcow2-util-linux-bf60e9f12d9bcf7d87581c69cbc103c18f7d001a.zip
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>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c7
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;