summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/hexsyntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/hexdump/hexsyntax.c')
-rw-r--r--usr.bin/hexdump/hexsyntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/hexdump/hexsyntax.c b/usr.bin/hexdump/hexsyntax.c
index 2c13db2..279a68c 100644
--- a/usr.bin/hexdump/hexsyntax.c
+++ b/usr.bin/hexdump/hexsyntax.c
@@ -65,7 +65,7 @@ newsyntax(argc, argvp)
add("\"%08.8_ax \" 8/1 \"%02x \" \" \" 8/1 \"%02x \" ");
add("\" |\" 16/1 \"%_p\" \"|\\n\"");
}
- while ((ch = getopt(argc, argv, "bcCde:f:n:os:vx")) != EOF)
+ while ((ch = getopt(argc, argv, "bcCde:f:n:os:vx")) != -1)
switch (ch) {
case 'b':
add("\"%07.7_Ax\n\"");
OpenPOWER on IntegriCloud