mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
Fix compilation breakage with non-C99 compilers.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4829 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5bd020ad92
commit
60b50b6cb9
1 file changed
+1
-2
+1
-2
@@ -163,7 +163,6 @@ static int sensors_read_dynamic_chip(sensors_chip_features *chip,
|
||||
struct dlist *attrs;
|
||||
sensors_chip_feature *features;
|
||||
sensors_chip_feature *dyn_features;
|
||||
char *name;
|
||||
|
||||
attrs = sysfs_get_device_attributes(sysdir);
|
||||
|
||||
@@ -178,7 +177,7 @@ static int sensors_read_dynamic_chip(sensors_chip_features *chip,
|
||||
sensors_fatal_error(__FUNCTION__, "Out of memory");
|
||||
|
||||
dlist_for_each_data(attrs, attr, struct sysfs_attribute) {
|
||||
name = attr->name;
|
||||
char *name = attr->name;
|
||||
int nr;
|
||||
|
||||
type = sensors_feature_get_type(name, &nr);
|
||||
|
||||
Reference in new issue
Block a user