summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4502af3)
raw | patch | inline | side by side (parent: 4502af3)
author | Florian Forster <octo@crystal.wlan.home.verplant.org> | |
Tue, 21 Nov 2006 10:08:51 +0000 (11:08 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 21 Nov 2006 10:09:33 +0000 (11:09 +0100) |
src/sensors.c | patch | blob | history |
diff --git a/src/sensors.c b/src/sensors.c
index 290ddd289541211e06539a5f4b77b716b151c564..7cf787c7a8b155b9a74f1398a2e4c550f42372bc 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
#define SENSOR_TYPE_FANSPEED 2
#define SENSOR_TYPE_TEMPERATURE 3
+#if SENSORS_HAVE_READ
static char *sensor_type_prefix[] =
{
"unknown",
"temperature",
NULL
};
+#endif
typedef struct sensors_labeltypes {
char *label;
/*
* finite list of known labels extracted from lm_sensors
*/
+#if SENSORS_HAVE_READ
static sensors_labeltypes known_features[] =
{
{ "fan1", SENSOR_TYPE_FANSPEED },
{ "12V", SENSOR_TYPE_VOLTAGE },
{ 0, -1 }
};
+#endif
/* end new naming */
static char *config_keys[] =