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:
Ed Maste 2015-05-22 18:31:26 +00:00
parent 1c73ea3ef8
commit 8d121298ba

View File

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