From 57e3589237b91cff71f15fb847e52b4def2d9075 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 10 Sep 2005 20:09:42 +0000 Subject: [PATCH] Declare foundsysfs in proc.h. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3080 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/access.c | 2 -- lib/proc.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/access.c b/lib/access.c index 11f918ed..62f3165e 100644 --- a/lib/access.c +++ b/lib/access.c @@ -120,8 +120,6 @@ const sensors_chip_feature *sensors_lookup_feature_name(const char *prefix, if there are wildcards. */ int sensors_chip_name_has_wildcards(sensors_chip_name chip) { - extern int foundsysfs; - if(foundsysfs) { if (chip.prefix == SENSORS_CHIP_NAME_PREFIX_ANY) return 1; diff --git a/lib/proc.h b/lib/proc.h index 05638b58..a2a0c9c1 100644 --- a/lib/proc.h +++ b/lib/proc.h @@ -34,4 +34,7 @@ extern int sensors_read_proc(sensors_chip_name name, int feature, extern int sensors_write_proc(sensors_chip_name name, int feature, double value); +/* Linux 2.6 uses sysfs, some code needs to know */ +extern int foundsysfs; + #endif