[collectd] [PATCH] sensors: fix shutdown for SENSORS_HAVE_READ

Luboš Staněk kolektor<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>atlas.cz
Tue Dec 5 16:34:28 CET 2006


Sorry, too many changes for me to observe at once.

Signed-off-by: Stanek Lubos <kolektor<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>atlas.cz>
---
 src/sensors.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/sensors.c b/src/sensors.c
index 9cf0858..352ecf7 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)
-- 
1.4.2.4




More information about the collectd mailing list