From 8d121298ba4fa706702608ee1dcc6344967f445d Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 22 May 2015 18:31:26 +0000 Subject: [PATCH] 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 --- contrib/ipfilter/tools/ipf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ipfilter/tools/ipf.c b/contrib/ipfilter/tools/ipf.c index dd601426debd..08cfb0a90191 100644 --- a/contrib/ipfilter/tools/ipf.c +++ b/contrib/ipfilter/tools/ipf.c @@ -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");