aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-08-17 17:34:09 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-08-17 17:34:09 +0000
commit691ab711fbf42b1e1cb1387d750ee109b17544e8 (patch)
tree4d602026fa455295da8725b7b67a4ba97d77365b /usr.sbin
parent532ba48e39c6407e90b0170a38770cbbc2c69f0f (diff)
Notes
Diffstat (limited to 'usr.sbin')
-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 e8d06bbe6496a..0b28e8a52e05c 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) {