summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd/apmd.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-02-05 07:35:23 +0000
committerkevlo <kevlo@FreeBSD.org>2007-02-05 07:35:23 +0000
commitcf67f3127e8978432bb80927bce24d8c26e438c8 (patch)
tree60ca758783787b2fc287d734e5bd467de5f6c06f /usr.sbin/apmd/apmd.c
parent4881bd38e2f4061efa354e25c1c66cc0275393a7 (diff)
downloadFreeBSD-src-cf67f3127e8978432bb80927bce24d8c26e438c8.zip
FreeBSD-src-cf67f3127e8978432bb80927bce24d8c26e438c8.tar.gz
getopt(3) returns -1, not EOF when out of args.
Diffstat (limited to 'usr.sbin/apmd/apmd.c')
-rw-r--r--usr.sbin/apmd/apmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 0b8ef93..67351f8 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -650,7 +650,7 @@ main(int ac, char* av[])
char *prog;
int logopt = LOG_NDELAY | LOG_PID;
- while ((ch = getopt(ac, av, "df:sv")) != EOF) {
+ while ((ch = getopt(ac, av, "df:sv")) != -1) {
switch (ch) {
case 'd':
daemonize = 0;
OpenPOWER on IntegriCloud