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"); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"