diff --git a/lib/access.c b/lib/access.c index 35bc47bf..4ff57840 100644 --- a/lib/access.c +++ b/lib/access.c @@ -128,12 +128,10 @@ int sensors_chip_name_has_wildcards(sensors_chip_name chip) return 0; } -#include - /* Look up the label which belongs to this chip. Note that chip should not contain wildcard values! *result is newly allocated (free it yourself). This function will return 0 on success, and <0 on failure. */ -int sensors_get_label1(sensors_chip_name name, int feature, char **result) +int sensors_get_label(sensors_chip_name name, int feature, char **result) { const sensors_chip *chip; const sensors_chip_feature *featureptr; @@ -155,17 +153,10 @@ int sensors_get_label1(sensors_chip_name name, int feature, char **result) return 0; } -int sensors_get_label(sensors_chip_name name, int feature, char **result) -{ - int res=sensors_get_label1(name,feature,result); - if (res) fprintf(stderr,"\nerror get_label: %d\n",res); - return res; -} - /* Read the value of a feature of a certain chip. Note that chip should not contain wildcard values! This function will return 0 on success, and <0 on failure. */ -int sensors_get_feature1(sensors_chip_name name, int feature, double *result) +int sensors_get_feature(sensors_chip_name name, int feature, double *result) { const sensors_chip_feature *main_feature; const sensors_chip_feature *alt_feature; @@ -205,13 +196,6 @@ int sensors_get_feature1(sensors_chip_name name, int feature, double *result) return 0; } -int sensors_get_feature(sensors_chip_name name, int feature, double *result) -{ - int res=sensors_get_feature1(name,feature,result); - if (res) fprintf(stderr,"\nerror get_feature: %d\n",res); - return res; -} - /* Set the value of a feature of a certain chip. Note that chip should not contain wildcard values! This function will return 0 on success, and <0 on failure. */