svn commit: r245497 - projects/diffused_head/sbin/ipfw/diffuse_collector
Lawrence Stewart
lstewart at FreeBSD.org
Wed Jan 16 06:12:19 UTC 2013
Author: lstewart
Date: Wed Jan 16 06:12:19 2013
New Revision: 245497
URL: http://svnweb.freebsd.org/changeset/base/245497
Log:
Fix some const vs non-const string issues.
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 05:44:20 2013 (r245496)
+++ projects/diffused_head/sbin/ipfw/diffuse_collector/diffuse_collector.c Wed Jan 16 06:12:19 2013 (r245497)
@@ -90,7 +90,7 @@ __FBSDID("$FreeBSD$");
static const char *usage = "Usage: diffuse_collector [-hnv] "
"[-c <collector-config>] [-s <sctp-port>] [-t <tcp-port>] [-u <udp-port>]";
-static char *config_sections[] = {
+static const char *config_sections[] = {
#define INI_SECTION_GENERAL 0
"general",
#define INI_SECTION_CLASSACTIONS 1
@@ -444,7 +444,7 @@ exec(char *command)
FILE *f;
if (config.no_fw)
- command = "test";
+ command = (char *)"test";
if (config.verbose)
printf("Executing shell command: %s\n", command);
f = popen(command, "r");
More information about the svn-src-projects
mailing list