summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34db352)
raw | patch | inline | side by side (parent: 34db352)
author | Florian Forster <octo@collectd.org> | |
Thu, 23 Feb 2012 09:34:57 +0000 (10:34 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 23 Feb 2012 09:34:57 +0000 (10:34 +0100) |
Change-Id: I0c718ee6cd727bd9868633312ea0f81a2b8f0e41
src/sensors.c | patch | blob | history |
diff --git a/src/sensors.c b/src/sensors.c
index 7c1566c3022d9db096231d31fd3b5a7ee219041e..209482e09f88e37a536641bda22d71e2d71810b4 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
# 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)
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 */
call_once = 1;
- if (conffile)
+ if (conffile != NULL)
{
fh = fopen (conffile, "r");
if (fh == NULL)