diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
| commit | b7498df286c40ea0740282b9e663d224fec40dc8 (patch) | |
| tree | 578506eede3120635d7308f1fed95a1c6147a49a /usr.sbin | |
| parent | 58eefce0e6d849ee941bbf456c0a91952458e7c4 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/cdcontrol/cdcontrol.c | 2 | ||||
| -rw-r--r-- | usr.sbin/zic/zdump.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c index 040106faf65c..eb914cf40c0a 100644 --- a/usr.sbin/cdcontrol/cdcontrol.c +++ b/usr.sbin/cdcontrol/cdcontrol.c @@ -190,7 +190,7 @@ int main (int argc, char **argv) for (;;) { switch (getopt (argc, argv, "svhf:")) { - case EOF: + case -1: break; case 's': verbose = 0; diff --git a/usr.sbin/zic/zdump.c b/usr.sbin/zic/zdump.c index e63e94398834..980c8a80d22d 100644 --- a/usr.sbin/zic/zdump.c +++ b/usr.sbin/zic/zdump.c @@ -170,7 +170,7 @@ char * argv[]; if (c == 'v') vflag = 1; else cutoff = optarg; - if ((c != EOF && c != -1) || + if ((c != -1) || (optind == argc - 1 && strcmp(argv[optind], "=") == 0)) { usage(); } |
