svn commit: r245505 - projects/diffused_head/sbin/ipfw/diffuse_collector

Lawrence Stewart lstewart at FreeBSD.org
Wed Jan 16 09:07:50 UTC 2013


Author: lstewart
Date: Wed Jan 16 09:07:49 2013
New Revision: 245505
URL: http://svnweb.freebsd.org/changeset/base/245505

Log:
  Avoid shadowing the global getopt(3) optarg variable.
  
  Reported by:	clang

Modified:
  projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c

Modified: projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c
==============================================================================
--- projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c	Wed Jan 16 09:06:33 2013	(r245504)
+++ projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c	Wed Jan 16 09:07:49 2013	(r245505)
@@ -1286,12 +1286,12 @@ init_cnode(struct class_node *cnode)
 }
 
 static void
-parse_rule_nos(char *optarg)
+parse_rule_nos(char *oparg)
 {
 	char tmp[128];
 	char *errptr, *p;
 
-	strncpy(tmp, optarg, sizeof(tmp));
+	strncpy(tmp, oparg, sizeof(tmp));
 	p = strstr(tmp, "-");
 
 	if (p != NULL) {


More information about the svn-src-projects mailing list