From 57a8ff5a5323adf35c978ed23a7f0b4761a177c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lubo=B9=20Stan=ECk?= Date: Tue, 5 Dec 2006 16:34:28 +0100 Subject: [PATCH] sensors plugin: fix shutdown for SENSORS_HAVE_READ Sorry, too many changes for me to observe at once. Signed-off-by: Stanek Lubos --- src/sensors.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2