summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorOndrej Oprala2013-09-23 15:39:22 +0200
committerKarel Zak2013-11-08 12:54:53 +0100
commit2f83c8f032f71fb6ab5d01ad81e805e078dd7fd8 (patch)
tree8c039bad419e561ad75e40f3ed2f196ea5cd99d5 /text-utils/hexdump.c
parenthexdump: minor formatting improvements (diff)
downloadkernel-qcow2-util-linux-2f83c8f032f71fb6ab5d01ad81e805e078dd7fd8.tar.gz
kernel-qcow2-util-linux-2f83c8f032f71fb6ab5d01ad81e805e078dd7fd8.tar.xz
kernel-qcow2-util-linux-2f83c8f032f71fb6ab5d01ad81e805e078dd7fd8.zip
hexdump: simplify newsyntax arguments
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index d5b9992e0..47853a882 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
atexit(close_stdout);
if (!(c = strrchr(argv[0], 'o')) || strcmp(c, "od")) {
- newsyntax(argc, &argv);
+ argv += newsyntax(argc, argv);
} else
errx(EXIT_FAILURE, _("calling hexdump as od has been deprecated "
"in favour to GNU coreutils od."));