summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2013-02-27 09:17:40 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-02-27 11:36:50 (GMT)
commit885af894030d351393ecd2260494306b938e839f (patch)
tree325df20ce0641617613d178a444aee23f1f153e6 /plugins
parent8397cbbc0a79d39cf3b1880f4fd3f3405b6bc6ad (diff)
downloadconnman-885af894030d351393ecd2260494306b938e839f.zip
connman-885af894030d351393ecd2260494306b938e839f.tar.gz
connman-885af894030d351393ecd2260494306b938e839f.tar.bz2
neard: Use a timeout instead of DBUS_TIMEOUT_USE_DEFAULT for compatibility
DBUS_TIMEOUT_USE_DEFAULT appeared in dbus-1.4.12, but earlier dbus versions are still in use in some distributions like Fedora 17.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/neard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/neard.c b/plugins/neard.c
index 145ab9e..85cf06b 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -39,6 +39,8 @@
#include <gdbus.h>
+#define TIMEOUT 30000
+
#define NEARD_SERVICE "org.neard"
#define NEARD_PATH "/"
#define NEARD_MANAGER_INTERFACE "org.neard.Manager"
@@ -528,7 +530,7 @@ static void register_agent(void)
&path, DBUS_TYPE_STRING, &type, DBUS_TYPE_INVALID);
if (dbus_connection_send_with_reply(connection, message,
- &register_call, DBUS_TIMEOUT_USE_DEFAULT) == FALSE) {
+ &register_call, TIMEOUT) == FALSE) {
dbus_message_unref(message);
goto out;
}