summaryrefslogtreecommitdiffstats
path: root/usr.sbin/zic
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
committerru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
commit2aa5a61fd32c181b70181233740e601e8d759d8d (patch)
tree578506eede3120635d7308f1fed95a1c6147a49a /usr.sbin/zic
parent82432917a301545733ec74d5c38248d1009e3e9d (diff)
downloadFreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.zip
FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.tar.gz
getopt(3) returns -1, not EOF.
Diffstat (limited to 'usr.sbin/zic')
-rw-r--r--usr.sbin/zic/zdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/zic/zdump.c b/usr.sbin/zic/zdump.c
index e63e943..980c8a8 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();
}
OpenPOWER on IntegriCloud