summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandry Breuil <landry@rhaalovely.net>2011-03-07 20:29:08 +0100
committerRichard Hughes <richard@hughsie.com>2011-03-21 18:40:12 +0000
commit20a3759ab90fd75acf7941bf5a2b57ad7e9e5c52 (patch)
tree00eb2278d2a46baa9553c961eaf796107d152060
parent1017f7399b40ec750195857a0493c3df156fffbe (diff)
openbsd: rename get_sensor() to get_sensordev() for the sake of clarity
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r--src/openbsd/up-apm-native.h2
-rw-r--r--src/openbsd/up-native.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/openbsd/up-apm-native.h b/src/openbsd/up-apm-native.h
index cbd931d..c0d5584 100644
--- a/src/openbsd/up-apm-native.h
+++ b/src/openbsd/up-apm-native.h
@@ -47,7 +47,7 @@ typedef struct
UpApmNative* up_apm_native_new (const char*);
const gchar * up_apm_native_get_path(UpApmNative*);
gboolean up_native_is_laptop();
-gboolean up_native_get_sensor(const char*, struct sensordev*);
+gboolean up_native_get_sensordev(const char*, struct sensordev*);
G_END_DECLS
#endif
diff --git a/src/openbsd/up-native.c b/src/openbsd/up-native.c
index aed89f6..b97f553 100644
--- a/src/openbsd/up-native.c
+++ b/src/openbsd/up-native.c
@@ -58,7 +58,7 @@ up_native_is_laptop()
struct apm_power_info bstate;
struct sensordev acpiac;
- if (up_native_get_sensor("acpiac0", &acpiac))
+ if (up_native_get_sensordev("acpiac0", &acpiac))
return TRUE;
if ((apm_fd = open("/dev/apm", O_RDONLY)) == -1) {
@@ -76,7 +76,7 @@ up_native_is_laptop()
* returns a gboolean if found or not
*/
gboolean
-up_native_get_sensor(const char * id, struct sensordev * snsrdev)
+up_native_get_sensordev(const char * id, struct sensordev * snsrdev)
{
int devn;
size_t sdlen = sizeof(struct sensordev);