From 552d265b6ced1e56d31f20f16a7fe9ae818d568b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 15 Jan 1997 23:44:39 +0000 Subject: getopt(3) returns -1 when out of args, not EOF, whee! --- kerberosIV/kpropd/kpropd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kerberosIV/kpropd/kpropd.c') 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++; -- cgit v1.2.3