getopt(3): EOF -> -1.

This commit is contained in:
kleink 2001-05-07 14:51:46 +00:00
parent a0649bd297
commit 017a840cd9
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ping6.c,v 1.32 2001/02/04 00:35:20 itojun Exp $ */ /* $NetBSD: ping6.c,v 1.33 2001/05/07 14:51:46 kleink Exp $ */
/* $KAME: ping6.c,v 1.121 2001/02/01 16:43:01 itojun Exp $ */ /* $KAME: ping6.c,v 1.121 2001/02/01 16:43:01 itojun Exp $ */
/* /*
@ -81,7 +81,7 @@ static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
#else #else
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: ping6.c,v 1.32 2001/02/04 00:35:20 itojun Exp $"); __RCSID("$NetBSD: ping6.c,v 1.33 2001/05/07 14:51:46 kleink Exp $");
#endif #endif
#endif #endif
@ -330,7 +330,7 @@ main(argc, argv)
#endif /*IPSEC_POLICY_IPSEC*/ #endif /*IPSEC_POLICY_IPSEC*/
#endif #endif
while ((ch = getopt(argc, argv, while ((ch = getopt(argc, argv,
"a:b:c:dfHh:I:i:l:nNp:qRS:s:tvwW" ADDOPTS)) != EOF) { "a:b:c:dfHh:I:i:l:nNp:qRS:s:tvwW" ADDOPTS)) != -1) {
#undef ADDOPTS #undef ADDOPTS
switch (ch) { switch (ch) {
case 'a': case 'a':

View File

@ -1,4 +1,4 @@
/* $NetBSD: setkey.c,v 1.3 2000/12/20 01:05:22 cgd Exp $ */ /* $NetBSD: setkey.c,v 1.4 2001/05/07 14:51:47 kleink Exp $ */
/* $KAME: setkey.c,v 1.15 2000/08/31 06:09:27 sakane Exp $ */ /* $KAME: setkey.c,v 1.15 2000/08/31 06:09:27 sakane Exp $ */
/* /*
@ -112,7 +112,7 @@ main(ac, av)
if (ac == 1) Usage(); if (ac == 1) Usage();
while ((c = getopt(ac, av, "acdf:hlvxDFP")) != EOF) { while ((c = getopt(ac, av, "acdf:hlvxDFP")) != -1) {
switch (c) { switch (c) {
case 'c': case 'c':
f_mode = MODE_SCRIPT; f_mode = MODE_SCRIPT;