diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-02-27 11:17:40 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-02-27 13:36:50 +0200 |
commit | 885af894030d351393ecd2260494306b938e839f (patch) | |
tree | 325df20ce0641617613d178a444aee23f1f153e6 | |
parent | 8397cbbc0a79d39cf3b1880f4fd3f3405b6bc6ad (diff) | |
download | connman-885af894030d351393ecd2260494306b938e839f.tar.gz connman-885af894030d351393ecd2260494306b938e839f.tar.bz2 connman-885af894030d351393ecd2260494306b938e839f.zip |
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.
-rw-r--r-- | plugins/neard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/neard.c b/plugins/neard.c index 145ab9e4..85cf06b6 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, - ®ister_call, DBUS_TIMEOUT_USE_DEFAULT) == FALSE) { + ®ister_call, TIMEOUT) == FALSE) { dbus_message_unref(message); goto out; } |