svn commit: r283748 - stable/10/contrib/ipfilter/tools
Ed Maste
emaste at FreeBSD.org
Fri May 29 17:43:15 UTC 2015
Author: emaste
Date: Fri May 29 17:43:14 2015
New Revision: 283748
URL: https://svnweb.freebsd.org/changeset/base/283748
Log:
MFC r283295: ipf(1): Use strchr(3) instead of deprecated index(3)
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/contrib/ipfilter/tools/ipf.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/ipfilter/tools/ipf.c
==============================================================================
--- stable/10/contrib/ipfilter/tools/ipf.c Fri May 29 17:01:15 2015 (r283747)
+++ stable/10/contrib/ipfilter/tools/ipf.c Fri May 29 17:43:14 2015 (r283748)
@@ -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");
More information about the svn-src-stable
mailing list