aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-29 04:34:07 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-29 04:34:07 +0000
commit1c8af8787354e20c2b38cab5801698133ff8b403 (patch)
tree678b7641c05ca5dc27c06cac1210b2a7712335a9 /usr.bin/hexdump
parent8d64695c7c6791641c71b15441665bafc43c2bd0 (diff)
Notes
Diffstat (limited to 'usr.bin/hexdump')
-rw-r--r--usr.bin/hexdump/hexsyntax.c2
-rw-r--r--usr.bin/hexdump/odsyntax.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/hexdump/hexsyntax.c b/usr.bin/hexdump/hexsyntax.c
index 2c13db228109f..279a68c2fe661 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\"");
diff --git a/usr.bin/hexdump/odsyntax.c b/usr.bin/hexdump/odsyntax.c
index b6143f0ae3691..e4c4e72820f10 100644
--- a/usr.bin/hexdump/odsyntax.c
+++ b/usr.bin/hexdump/odsyntax.c
@@ -61,7 +61,7 @@ oldsyntax(argc, argvp)
deprecated = 1;
argv = *argvp;
- while ((ch = getopt(argc, argv, "aBbcDdeFfHhIiLlOoPpswvXx")) != EOF)
+ while ((ch = getopt(argc, argv, "aBbcDdeFfHhIiLlOoPpswvXx")) != -1)
switch (ch) {
case 'a':
odprecede();