[PATCH] Fix a build failure in FreeBSD
Aurelien Jarno
aurelien at aurel32.net
Mon Aug 17 14:33:25 PDT 2009
---
hald/freebsd/hf-computer.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hald/freebsd/hf-computer.c b/hald/freebsd/hf-computer.c
index 7e9b9de..030a25c 100644
--- a/hald/freebsd/hf-computer.c
+++ b/hald/freebsd/hf-computer.c
@@ -133,11 +133,11 @@ hf_computer_device_add (void)
if (PACKAGE_VERSION) {
int major, minor, micro;
- hal_device_property_set_string (root, "org.freedesktop.Hal.version", PACKAGE_VERSION);
+ hal_device_property_set_string (device, "org.freedesktop.Hal.version", PACKAGE_VERSION);
if ( sscanf( PACKAGE_VERSION, "%d.%d.%d", &major, &minor, µ ) == 3 ) {
- hal_device_property_set_int (root, "org.freedesktop.Hal.version.major", major);
- hal_device_property_set_int (root, "org.freedesktop.Hal.version.minor", minor);
- hal_device_property_set_int (root, "org.freedesktop.Hal.version.micro", micro);
+ hal_device_property_set_int (device, "org.freedesktop.Hal.version.major", major);
+ hal_device_property_set_int (device, "org.freedesktop.Hal.version.minor", minor);
+ hal_device_property_set_int (device, "org.freedesktop.Hal.version.micro", micro);
}
}
--
1.6.1.3
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien at aurel32.net http://www.aurel32.net
More information about the hal
mailing list