From 3c851dd7e04640567ad5a738c43727bb40e9103e Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 25 Feb 2007 12:27:26 +0000 Subject: lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value' git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_i2c_sensors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin_i2c_sensors.c') diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c index 8f273cf..5d1c57f 100644 --- a/plugin_i2c_sensors.c +++ b/plugin_i2c_sensors.c @@ -113,7 +113,7 @@ static int parse_i2c_sensors_sysfs(const char *key) fgets(buffer, sizeof(buffer), stream); fclose(stream); - if (!buffer) { + if (buffer[0] == '\0') { error("i2c_sensors: %s empty ?!", file); return -1; } @@ -183,7 +183,7 @@ static int parse_i2c_sensors_procfs(const char *key) fgets(buffer, sizeof(buffer), stream); fclose(stream); - if (!buffer) { + if (buffer[0] == '\0') { error("i2c_sensors: %s empty ?!", file); return -1; } -- cgit v1.2.3