projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a8ff5
)
sensors plugin: declare variables only if SENSORS_HAVE_READ
author
Lubos Stanek
<kolektor@atlas.cz>
Tue, 5 Dec 2006 18:09:33 +0000
(19:09 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 5 Dec 2006 19:52:54 +0000
(20:52 +0100)
Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
src/sensors.c
patch
|
blob
|
history
diff --git
a/src/sensors.c
b/src/sensors.c
index
352ecf7
..
ff8b580
100644
(file)
--- a/
src/sensors.c
+++ b/
src/sensors.c
@@
-337,12
+337,10
@@
static void collectd_sensors_init (void)
static void sensors_shutdown (void)
{
+#if SENSORS_HAVE_READ
featurelist_t *thisft = first_feature;
featurelist_t *nextft;
- ignorelist_free (sensor_list);
-
-#if SENSORS_HAVE_READ
while (thisft != NULL)
{
nextft = thisft->next;
@@
-352,6
+350,8
@@
static void sensors_shutdown (void)
sensors_cleanup ();
#endif /* if SENSORS_HAVE_READ */
+
+ ignorelist_free (sensor_list);
}
static void sensors_voltage_write (char *host, char *inst, char *val)