diff options
| author | Warner Losh <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
| commit | 1c8af8787354e20c2b38cab5801698133ff8b403 (patch) | |
| tree | 678b7641c05ca5dc27c06cac1210b2a7712335a9 /usr.bin/gcore | |
| parent | 8d64695c7c6791641c71b15441665bafc43c2bd0 (diff) | |
Notes
Diffstat (limited to 'usr.bin/gcore')
| -rw-r--r-- | usr.bin/gcore/aoutcore.c | 2 | ||||
| -rw-r--r-- | usr.bin/gcore/gcore.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gcore/aoutcore.c b/usr.bin/gcore/aoutcore.c index 4ec4ed69674b..7ecbe1c3ee27 100644 --- a/usr.bin/gcore/aoutcore.c +++ b/usr.bin/gcore/aoutcore.c @@ -98,7 +98,7 @@ main(argc, argv) sflag = 0; corefile = NULL; - while ((ch = getopt(argc, argv, "c:s")) != EOF) { + while ((ch = getopt(argc, argv, "c:s")) != -1) { switch (ch) { case 'c': corefile = optarg; diff --git a/usr.bin/gcore/gcore.c b/usr.bin/gcore/gcore.c index 4ec4ed69674b..7ecbe1c3ee27 100644 --- a/usr.bin/gcore/gcore.c +++ b/usr.bin/gcore/gcore.c @@ -98,7 +98,7 @@ main(argc, argv) sflag = 0; corefile = NULL; - while ((ch = getopt(argc, argv, "c:s")) != EOF) { + while ((ch = getopt(argc, argv, "c:s")) != -1) { switch (ch) { case 'c': corefile = optarg; |
