From: Florian Forster Date: Thu, 23 Feb 2012 09:34:57 +0000 (+0100) Subject: sensors plugin: Make "conffile" non-const. X-Git-Tag: collectd-5.1.0~25^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=725e010404224185cdef5349a8f6564cc0ac6da9;p=collectd.git sensors plugin: Make "conffile" non-const. Change-Id: I0c718ee6cd727bd9868633312ea0f81a2b8f0e41 --- diff --git a/src/sensors.c b/src/sensors.c index 7c1566c3..209482e0 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -153,7 +153,7 @@ typedef struct featurelist # ifndef SENSORS_CONF_PATH # define SENSORS_CONF_PATH "/etc/sensors.conf" # endif -static const char *conffile = SENSORS_CONF_PATH; +static char *conffile = SENSORS_CONF_PATH; /* #endif SENSORS_API_VERSION < 0x400 */ #elif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) @@ -165,7 +165,7 @@ typedef struct featurelist struct featurelist *next; } featurelist_t; -static const char *conffile = NULL; +static char *conffile = NULL; /* #endif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ #else /* if SENSORS_API_VERSION >= 0x500 */ @@ -297,7 +297,7 @@ static int sensors_load_conf (void) call_once = 1; - if (conffile) + if (conffile != NULL) { fh = fopen (conffile, "r"); if (fh == NULL)