From: Lubo¹ Stanìk Date: Tue, 5 Dec 2006 15:34:28 +0000 (+0100) Subject: sensors plugin: fix shutdown for SENSORS_HAVE_READ X-Git-Tag: collectd-3.11.0~26^2~5^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=57a8ff5a5323adf35c978ed23a7f0b4761a177c1;p=collectd.git sensors plugin: fix shutdown for SENSORS_HAVE_READ Sorry, too many changes for me to observe at once. Signed-off-by: Stanek Lubos --- diff --git a/src/sensors.c b/src/sensors.c index 9cf0858f..352ecf73 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -342,6 +342,7 @@ static void sensors_shutdown (void) ignorelist_free (sensor_list); +#if SENSORS_HAVE_READ while (thisft != NULL) { nextft = thisft->next; @@ -350,6 +351,7 @@ static void sensors_shutdown (void) } sensors_cleanup (); +#endif /* if SENSORS_HAVE_READ */ } static void sensors_voltage_write (char *host, char *inst, char *val)