ipf(1): Use strchr(3) instead of deprecated index(3)

Reviewed by:	cy
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D2607
This commit is contained in:
emaste 2015-05-22 18:31:26 +00:00
parent 4d7716dd23
commit 036bc0d6fa

View File

@ -296,7 +296,7 @@ static void packetlogon(opt)
printf("set log flag: nomatch\n"); printf("set log flag: nomatch\n");
change = 1; change = 1;
} }
if (strstr(opt, "block") || index(opt, 'd')) { if (strstr(opt, "block") || strchr(opt, 'd')) {
flag |= FF_LOGBLOCK; flag |= FF_LOGBLOCK;
if (opts & OPT_VERBOSE) if (opts & OPT_VERBOSE)
printf("set log flag: block\n"); printf("set log flag: block\n");