artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb96fb7
)
getopt returns -1 not EOF!
author
millert
<millert@openbsd.org>
Mon, 20 Jan 1997 17:19:31 +0000
(17:19 +0000)
committer
millert
<millert@openbsd.org>
Mon, 20 Jan 1997 17:19:31 +0000
(17:19 +0000)
share/misc/getopt
patch
|
blob
|
history
diff --git
a/share/misc/getopt
b/share/misc/getopt
index
b5ec0e4
..
e26ed54
100644
(file)
--- a/
share/misc/getopt
+++ b/
share/misc/getopt
@@
-2,7
+2,7
@@
* Main/getopt(3) fragment.
*
* from: @(#)getopt 5.3 (Berkeley) 3/28/94
- * $Id: getopt,v 1.
1.1.1 1995/10/18 08:44:44 deraad
t Exp $
+ * $Id: getopt,v 1.
2 1997/01/20 17:19:31 miller
t Exp $
*/
#include <sys/types.h>
@@
-18,7
+18,7
@@
main(argc, argv)
{
int ch;
- while ((ch = getopt(argc, argv, "")) !=
EOF
)
+ while ((ch = getopt(argc, argv, "")) !=
-1
)
switch (ch) {
case '':
break;