=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/getopt/getopt.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/getopt/getopt.c 1996/06/26 05:33:45 1.2 +++ src/usr.bin/getopt/getopt.c 1997/01/15 23:42:32 1.3 @@ -1,7 +1,7 @@ -/* $OpenBSD: getopt.c,v 1.2 1996/06/26 05:33:45 deraadt Exp $ */ +/* $OpenBSD: getopt.c,v 1.3 1997/01/15 23:42:32 millert Exp $ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getopt.c,v 1.2 1996/06/26 05:33:45 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getopt.c,v 1.3 1997/01/15 23:42:32 millert Exp $"; #endif /* not lint */ #include @@ -16,7 +16,7 @@ int status = 0; optind = 2; /* Past the program name and the option letters. */ - while ((c = getopt(argc, argv, argv[1])) != EOF) + while ((c = getopt(argc, argv, argv[1])) != -1) switch (c) { case '?': status = 1; /* getopt routine gave message */