summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/route6d/route6d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index e8d06bb..0b28e8a 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -3009,11 +3009,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*/
}
@@ -3034,7 +3034,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) {
OpenPOWER on IntegriCloud