From 89639fdb172a40afe7fd9843765cd16790ecfcb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lubo=B9=20Stan=ECk?= Date: Tue, 5 Dec 2006 16:15:55 +0100 Subject: [PATCH] sensors plugin: SENSORS_HAVE_READ unification Signed-off-by: Stanek Lubos --- src/sensors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sensors.c b/src/sensors.c index 7cf787c7..c1b7d4b5 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -178,7 +178,7 @@ static ignorelist_t *sensor_list; */ static int sensor_extended_naming = 0; -#ifdef HAVE_LIBSENSORS +#if SENSORS_HAVE_READ typedef struct featurelist { const sensors_chip_name *chip; @@ -188,7 +188,7 @@ typedef struct featurelist } featurelist_t; featurelist_t *first_feature = NULL; -#endif /* defined (HAVE_LIBSENSORS) */ +#endif /* if SENSORS_HAVE_READ */ static int sensors_config (char *key, char *value) { @@ -230,7 +230,7 @@ static int sensors_config (char *key, char *value) static void collectd_sensors_init (void) { -#ifdef HAVE_LIBSENSORS +#if SENSORS_HAVE_READ FILE *fh; featurelist_t *last_feature = NULL; featurelist_t *new_feature; @@ -330,7 +330,7 @@ static void collectd_sensors_init (void) if (first_feature == NULL) sensors_cleanup (); -#endif /* defined(HAVE_LIBSENSORS) */ +#endif /* if SENSORS_HAVE_READ */ return; } -- 2.11.0