summaryrefslogtreecommitdiffstats
path: root/daemon/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/main.c')
-rw-r--r--daemon/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/main.c b/daemon/main.c
index be731b14..7479d25e 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -58,8 +58,7 @@ static DBusConnection *system_bus = NULL;
static int setup_dbus(void)
{
- system_bus = dbus_bus_system_setup_with_main_loop("org.bluez",
- NULL, NULL);
+ system_bus = g_dbus_setup_bus(DBUS_BUS_SYSTEM, "org.bluez", NULL);
if (!system_bus)
return -1;