mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user