Changeset 4806
- Timestamp:
- 09/18/07 22:46:06 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/sense.c
r4757 r4806 38 38 (const sensors_chip_name *name, int feature, const char **label) { 39 39 const sensors_feature_data *rawFeature; 40 int nr 1 = 0, nr2= 0, err = 0;40 int nr = 0, err = 0; 41 41 do { 42 rawFeature = sensors_get_all_features (name, &nr 1, &nr2);42 rawFeature = sensors_get_all_features (name, &nr); 43 43 } while (rawFeature && (rawFeature->number != feature)); 44 44 /* TODO: Ensure labels match RRD construct and are not repeated! */ … … 66 66 67 67 sensorLog (LOG_INFO, "Chip: %s", chipName (chip)); 68 adapter = sensors_get_adapter_name ( chip->bus);68 adapter = sensors_get_adapter_name (&chip->bus); 69 69 if (adapter) 70 70 sensorLog (LOG_INFO, "Adapter: %s", adapter); … … 77 77 (const sensors_chip_name *chip) { 78 78 const sensors_feature_data *sensor; 79 int index0 = 0 , index1 = 0;79 int index0 = 0; 80 80 int ret = 0; 81 81 82 82 ret = idChip (chip); 83 83 84 while ((ret == 0) && ((sensor = sensors_get_all_features (chip, &index0 , &index1)) != NULL)) {84 while ((ret == 0) && ((sensor = sensors_get_all_features (chip, &index0)) != NULL)) { 85 85 char *label = NULL; 86 86 double value;
