diff options
-rw-r--r-- | plugins/bluetooth.c | 2 | ||||
-rw-r--r-- | plugins/dhclient.c | 2 | ||||
-rw-r--r-- | plugins/polkit.c | 3 | ||||
-rw-r--r-- | plugins/wifi.c | 3 |
4 files changed, 6 insertions, 4 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index d7ae2867..9a26a94b 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -466,7 +466,7 @@ static int bluetooth_init(void) { int err = -EIO; - connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); + connection = connman_dbus_get_connection(); if (connection == NULL) return -EIO; diff --git a/plugins/dhclient.c b/plugins/dhclient.c index 61dafe42..2cb4930a 100644 --- a/plugins/dhclient.c +++ b/plugins/dhclient.c @@ -318,7 +318,7 @@ static int dhclient_init(void) gchar *filter; int err; - connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); + connection = connman_dbus_get_connection(); busname = dbus_bus_get_unique_name(connection); busname = CONNMAN_SERVICE; diff --git a/plugins/polkit.c b/plugins/polkit.c index a2e15a99..1bf3f900 100644 --- a/plugins/polkit.c +++ b/plugins/polkit.c @@ -30,6 +30,7 @@ #include <connman/plugin.h> #include <connman/security.h> +#include <connman/dbus.h> #include <connman/log.h> #define ACTION "org.moblin.connman.modify" @@ -124,7 +125,7 @@ static int polkit_init(void) { int err; - connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); + connection = connman_dbus_get_connection(); if (connection == NULL) return -EIO; diff --git a/plugins/wifi.c b/plugins/wifi.c index f2153527..dd769b57 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -36,6 +36,7 @@ #include <connman/plugin.h> #include <connman/driver.h> #include <connman/rtnl.h> +#include <connman/dbus.h> #include <connman/log.h> #include "inet.h" @@ -619,7 +620,7 @@ static int wifi_init(void) { int err; - connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); + connection = connman_dbus_get_connection(); if (connection == NULL) return -EIO; |