Oops, corrupted access.c in the last commit...

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@650 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-12-01 21:12:03 +00:00
1 parent 59bd758cd7
commit 296ac5f517
1 file changed
+2 -18
+2 -18
View File
@@ -128,12 +128,10 @@ int sensors_chip_name_has_wildcards(sensors_chip_name chip)
return 0;
}
#include <stdio.h>
/* 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. */