Date: Fri, 22 May 2015 18:31:26 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283295 - head/contrib/ipfilter/tools Message-ID: <201505221831.t4MIVQGC085654@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri May 22 18:31:26 2015 New Revision: 283295 URL: https://svnweb.freebsd.org/changeset/base/283295 Log: 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 Modified: head/contrib/ipfilter/tools/ipf.c Modified: head/contrib/ipfilter/tools/ipf.c ============================================================================== --- head/contrib/ipfilter/tools/ipf.c Fri May 22 18:23:21 2015 (r283294) +++ head/contrib/ipfilter/tools/ipf.c Fri May 22 18:31:26 2015 (r283295) @@ -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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505221831.t4MIVQGC085654>