diff options
author | emaste <emaste@FreeBSD.org> | 2015-05-22 18:31:26 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-05-22 18:31:26 +0000 |
commit | 036bc0d6fa15c4fce3dfc5b5647e225dd6fc0878 (patch) | |
tree | f6ae8fe976329ece5f9794b219d37c030f5a7bfa /contrib | |
parent | 4d7716dd23ac606cf6ea30d64fbd0edeb38e0f57 (diff) | |
download | FreeBSD-src-036bc0d6fa15c4fce3dfc5b5647e225dd6fc0878.zip FreeBSD-src-036bc0d6fa15c4fce3dfc5b5647e225dd6fc0878.tar.gz |
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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ipfilter/tools/ipf.c | 2 |
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"); |