Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin getopt(3): EOF -> -1.
details: https://anonhg.NetBSD.org/src/rev/a364764d2674
branches: trunk
changeset: 509568:a364764d2674
user: kleink <kleink%NetBSD.org@localhost>
date: Mon May 07 14:51:46 2001 +0000
description:
getopt(3): EOF -> -1.
diffstat:
sbin/ping6/ping6.c | 6 +++---
sbin/setkey/setkey.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 5d7e811f277a -r a364764d2674 sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c Mon May 07 14:00:22 2001 +0000
+++ b/sbin/ping6/ping6.c Mon May 07 14:51:46 2001 +0000
@@ -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 $ */
/*
@@ -81,7 +81,7 @@
#else
#include <sys/cdefs.h>
#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
@@ -330,7 +330,7 @@
#endif /*IPSEC_POLICY_IPSEC*/
#endif
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
switch (ch) {
case 'a':
diff -r 5d7e811f277a -r a364764d2674 sbin/setkey/setkey.c
--- a/sbin/setkey/setkey.c Mon May 07 14:00:22 2001 +0000
+++ b/sbin/setkey/setkey.c Mon May 07 14:51:46 2001 +0000
@@ -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 $ */
/*
@@ -112,7 +112,7 @@
if (ac == 1) Usage();
- while ((c = getopt(ac, av, "acdf:hlvxDFP")) != EOF) {
+ while ((c = getopt(ac, av, "acdf:hlvxDFP")) != -1) {
switch (c) {
case 'c':
f_mode = MODE_SCRIPT;
Home |
Main Index |
Thread Index |
Old Index