use strchr(3).
Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
532ba48e39
commit
691ab711fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119038
@ -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 @@ filterconfig()
|
||||
/* 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user