summaryrefslogtreecommitdiff
path: root/plugins/polkit.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-20 08:46:36 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-20 08:46:36 +0100
commit60fe07bb4f740459d0ee42fd207085634354b9d6 (patch)
tree263e177a52c041aa056885a56275bd8446f678f5 /plugins/polkit.c
parent72c28aa582fccf616092b3baed5a0964a98a09d7 (diff)
downloadconnman-60fe07bb4f740459d0ee42fd207085634354b9d6.tar.gz
connman-60fe07bb4f740459d0ee42fd207085634354b9d6.tar.bz2
connman-60fe07bb4f740459d0ee42fd207085634354b9d6.zip
Let plugins use connman_dbus_get_connection() function
Diffstat (limited to 'plugins/polkit.c')
-rw-r--r--plugins/polkit.c3
1 files changed, 2 insertions, 1 deletions
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;