diff --git a/prog/sensors/chips_generic.c b/prog/sensors/chips_generic.c index 957c5100..af81426a 100644 --- a/prog/sensors/chips_generic.c +++ b/prog/sensors/chips_generic.c @@ -64,23 +64,23 @@ static void sensors_get_available_features(const sensors_chip_name *name, iter->mapping != SENSORS_NO_MAPPING && iter->mapping == feature->number) { sensors_feature_type type = sensors_feature_get_type(iter); - unsigned int index; + unsigned int indx; if (type == SENSORS_FEATURE_UNKNOWN) continue; - index = type - first_val - 1; - if (index >= size) { + indx = type - first_val - 1; + if (indx >= size) { printf("ERROR: Bug in sensors: index out of bound"); return; } - if (get_feature_value(name, iter, &feature_vals[index])) + if (get_feature_value(name, iter, &feature_vals[indx])) printf("ERROR: Can't get %s data!\n", iter->name); /* some chips don't have all the features they claim to have */ - /* has_features[index] = (feature_vals[index] != 127); */ - has_features[index] = 1; + /* has_features[indx] = (feature_vals[indx] != 127); */ + has_features[indx] = 1; } }