summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d/route6d.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-09 02:15:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-09 02:15:55 +0000
commitfe7cb77bf344dfe9ac77276dd5d730280cb6453f (patch)
tree4cba6c90ce481bef5c7501f8bbe3894e56437890 /usr.sbin/route6d/route6d.c
parent79d7fc187005f7fc0edf2ff225adae5df1caf3c8 (diff)
strchr() instead of index()
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r--usr.sbin/route6d/route6d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index fc32b198f1a..112d07c2712 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.29 2002/06/07 16:42:07 itojun Exp $ */
+/* $OpenBSD: route6d.c,v 1.30 2002/06/09 02:15:54 deraadt Exp $ */
/* $KAME: route6d.c,v 1.85 2002/06/07 16:39:41 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#if 0
-static char _rcsid[] = "$OpenBSD: route6d.c,v 1.29 2002/06/07 16:42:07 itojun Exp $";
+static char _rcsid[] = "$OpenBSD: route6d.c,v 1.30 2002/06/09 02:15:54 deraadt Exp $";
#endif
#include <stdio.h>
@@ -3016,11 +3016,11 @@ filterconfig()
iflp = ap;
goto ifonly;
}
- if ((p = index(ap, ',')) != NULL) {
+ if ((p = strchr(ap, ',')) != NULL) {
*p++ = '\0';
iflp = p;
}
- if ((p = index(ap, '/')) == NULL) {
+ if ((p = strchr(ap, '/')) == NULL) {
fatal("no prefixlen specified for '%s'", ap);
/*NOTREACHED*/
}
@@ -3041,7 +3041,7 @@ ifonly:
/* parse the interface listing portion */
while (iflp) {
ifname = iflp;
- if ((iflp = index(iflp, ',')) != NULL)
+ if ((iflp = strchr(iflp, ',')) != NULL)
*iflp++ = '\0';
ifcp = ifc_find(ifname);
if (ifcp == NULL) {