Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 17:43:15 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283748 - stable/10/contrib/ipfilter/tools
Message-ID:  <201505291743.t4THhF0V092043@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505291743.t4THhF0V092043>