summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-05-29 17:43:14 +0000
committeremaste <emaste@FreeBSD.org>2015-05-29 17:43:14 +0000
commitcbcbd6fd247c3e083129217a9756684ae99d23e5 (patch)
treeb3355ea944fb8f55c7265a0d9030817c92fdd291 /contrib/ipfilter
parent09fd91eb464129448de518f1425b1c648e75c141 (diff)
downloadFreeBSD-src-cbcbd6fd247c3e083129217a9756684ae99d23e5.zip
FreeBSD-src-cbcbd6fd247c3e083129217a9756684ae99d23e5.tar.gz
MFC r283295: ipf(1): Use strchr(3) instead of deprecated index(3)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/ipfilter')
-rw-r--r--contrib/ipfilter/tools/ipf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ipfilter/tools/ipf.c b/contrib/ipfilter/tools/ipf.c
index dd60142..08cfb0a 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");
OpenPOWER on IntegriCloud