diff options
| author | enami <enami@NetBSD.org> | 1997-10-08 00:56:46 +0000 |
|---|---|---|
| committer | enami <enami@NetBSD.org> | 1997-10-08 00:56:46 +0000 |
| commit | 42eb13e47825ec54d5cebd2136f5913c0c071db2 (patch) | |
| tree | 9fc4a7a91f0be20b52a1f9c04184452941d99565 /libexec/fingerd | |
| parent | ec75ec1f8c0e5c34d2b7cde0f9677089eed2a530 (diff) | |
Compare a return value of getopt() against -1 instead of EOF.
Diffstat (limited to 'libexec/fingerd')
| -rw-r--r-- | libexec/fingerd/fingerd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index 0658ec15fa5..fa120c487ea 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -1,4 +1,4 @@ -/* $NetBSD: fingerd.c,v 1.6 1997/09/09 05:38:26 mrg Exp $ */ +/* $NetBSD: fingerd.c,v 1.7 1997/10/08 00:56:46 enami Exp $ */ /* * Copyright (c) 1983, 1993 @@ -43,7 +43,7 @@ static char const copyright[] = #if 0 static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93"; #else -static char const rcsid[] = "$NetBSD: fingerd.c,v 1.6 1997/09/09 05:38:26 mrg Exp $"; +static char const rcsid[] = "$NetBSD: fingerd.c,v 1.7 1997/10/08 00:56:46 enami Exp $"; #endif #endif /* not lint */ @@ -82,7 +82,7 @@ main(argc, argv) logging = no_forward = user_required = short_list = 0; openlog("fingerd", LOG_PID | LOG_CONS, LOG_DAEMON); opterr = 0; - while ((ch = getopt(argc, argv, "gsluSmpP:")) != EOF) + while ((ch = getopt(argc, argv, "gsluSmpP:")) != -1) switch (ch) { case 'l': logging = 1; |
