diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /kerberosIV/kpropd/kpropd.c | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'kerberosIV/kpropd/kpropd.c')
-rw-r--r-- | kerberosIV/kpropd/kpropd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/kpropd/kpropd.c b/kerberosIV/kpropd/kpropd.c index b2a97227a0c..1c283d6eed5 100644 --- a/kerberosIV/kpropd/kpropd.c +++ b/kerberosIV/kpropd/kpropd.c @@ -1,4 +1,4 @@ -/* $Id: kpropd.c,v 1.3 1996/09/16 18:48:56 millert Exp $ */ +/* $Id: kpropd.c,v 1.4 1997/01/15 23:40:53 millert Exp $ */ /*- * Copyright 1987 by the Massachusetts Institute of Technology. @@ -162,7 +162,7 @@ main(int argc, char **argv) if (argv[argc - 1][0] == 'k' && isdigit(argv[argc - 1][1])) { argc--; /* ttys file hack */ } - while ((c = getopt(argc, argv, "r:s:d:l:p:P:")) != EOF) { + while ((c = getopt(argc, argv, "r:s:d:l:p:P:")) != -1) { switch(c) { case 'r': rflag++; |