diff options
author | ume <ume@FreeBSD.org> | 2003-08-17 17:34:09 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-17 17:34:09 +0000 |
commit | 0376bb0358f3177e3494f90cdf1b1fa6836c24e2 (patch) | |
tree | 4d602026fa455295da8725b7b67a4ba97d77365b /usr.sbin/route6d | |
parent | a89d80761c211ae91acf3bbb1f6325202e1d2b40 (diff) | |
download | FreeBSD-src-0376bb0358f3177e3494f90cdf1b1fa6836c24e2.zip FreeBSD-src-0376bb0358f3177e3494f90cdf1b1fa6836c24e2.tar.gz |
use strchr(3).
Obtained from: KAME
MFC after: 1 week
Diffstat (limited to 'usr.sbin/route6d')
-rw-r--r-- | usr.sbin/route6d/route6d.c | 6 |
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) { |