Changeset 4511

Show
Ignore:
Timestamp:
06/28/07 16:46:08 (6 years ago)
Author:
khali
Message:

Warning fix ("index" is a standard libc function.)

Files:
1 modified

Legend:

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

    r4428 r4511  
    6565      iter->mapping == feature->number) { 
    6666    sensors_feature_type type = sensors_feature_get_type(iter); 
    67     unsigned int index; 
     67    unsigned int indx; 
    6868     
    6969    if (type == SENSORS_FEATURE_UNKNOWN) 
    7070      continue; 
    7171     
    72     index = type - first_val - 1; 
    73     if (index >= size) { 
     72    indx = type - first_val - 1; 
     73    if (indx >= size) { 
    7474      printf("ERROR: Bug in sensors: index out of bound"); 
    7575      return; 
    7676    } 
    7777     
    78     if (get_feature_value(name, iter, &feature_vals[index])) 
     78    if (get_feature_value(name, iter, &feature_vals[indx])) 
    7979      printf("ERROR: Can't get %s data!\n", iter->name); 
    8080     
    8181    /* some chips don't have all the features they claim to have */ 
    82     /* has_features[index] = (feature_vals[index] != 127); */ 
    83     has_features[index] = 1; 
     82    /* has_features[indx] = (feature_vals[indx] != 127); */ 
     83    has_features[indx] = 1; 
    8484  } 
    8585}