Show
Ignore:
Timestamp:
05/12/08 13:51:18 (7 years ago)
Author:
khali
Message:

Fix support of multiple chip names on the command line. It got broken
accidentally during the conversion to the new libsensors API in version
3.0.0. This closes ticket #2321.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/sense.c

    r5163 r5252  
    171171(int action) { 
    172172  const sensors_chip_name *chip; 
    173   int i = 0, j, ret = 0; 
     173  int i, j, ret = 0; 
    174174 
    175175  for (j = 0; (ret == 0) && (j < numChipNames); ++ j) { 
     176    i = 0; 
    176177    while ((ret == 0) && ((chip = sensors_get_detected_chips (&chipNames[j], &i)) != NULL)) { 
    177178      ret = doChip (chip, action);