Changeset 4642
- Timestamp:
- 07/22/07 14:51:57 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/access.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4636 r4642 17 17 Drop all the chip-specific support 18 18 Fix a memory leak on error 19 Speed up sensors_get_ignored() a bit 19 20 Makefile: Drop the package and version targets 20 21 Man page sensors.conf.5: Update the chip statement section -
lm-sensors/branches/lm-sensors-3.0.0/lib/access.c
r4637 r4642 199 199 const sensors_chip_feature *featureptr; 200 200 const sensors_chip_feature *alt_featureptr; 201 int i, res; 202 203 /* Default: valid */ 204 res = 1; 201 int i; 202 205 203 if (sensors_chip_name_has_wildcards(name)) 206 204 return -SENSORS_ERR_WILDCARDS; … … 215 213 for (chip = NULL; (chip = sensors_for_all_config_chips(name, chip));) 216 214 for (i = 0; i < chip->ignores_count; i++) 217 if (!strcasecmp(featureptr->data.name, chip->ignores[i].name)) 218 return 0; /* Exact match always overrules! */ 219 else if (alt_featureptr && 220 !strcasecmp(alt_featureptr->data.name, 221 chip->ignores[i].name)) 222 res = 0; 223 return res; 215 if (!strcasecmp(featureptr->data.name, chip->ignores[i].name) || 216 (alt_featureptr && 217 !strcasecmp(alt_featureptr->data.name, chip->ignores[i].name))) 218 return 0; 219 /* valid */ 220 return 1; 224 221 } 225 222
