summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2007-08-22 17:04:12 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2007-08-22 17:04:12 +0000
commitb773d482bd02d3bb8d4dd7a8f4c26f0de56810c5 (patch)
tree87c270e3a68ec08ccbd7f54b0f5dcde59f80af6a /lib/init.c
parentcb90fcff5d93223903803771b511002a86d8f5ff (diff)
downloadlm-sensors-b773d482bd02d3bb8d4dd7a8f4c26f0de56810c5.tar.gz
Drop support for reloading the configuration with sensors_init().
Instead, the application will have to call sensors_exit() explicitly before calling sensors_init() again. Most applications don't offer any way to reload the configuration file, so better optimize for the initial load. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4693 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.c b/lib/init.c
index a9203558..13c26f8e 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -40,7 +40,7 @@ static void free_expr(sensors_expr *expr);
int sensors_init(FILE *input)
{
int res;
- sensors_cleanup();
+
if (!sensors_init_sysfs())
return -SENSORS_ERR_PROC;
if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips()))