diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-28 10:17:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-28 10:17:56 +0200 |
commit | 5f5532f926e205921f7c4a5f2bffeeb1d062f1c3 (patch) | |
tree | 558ff9f1837be590bf961e2e7104b54130999609 /plugins/dhclient.c | |
parent | 317cefac52b5bde2070893ecc908654099a7a2ad (diff) | |
download | connman-5f5532f926e205921f7c4a5f2bffeeb1d062f1c3.tar.gz connman-5f5532f926e205921f7c4a5f2bffeeb1d062f1c3.tar.bz2 connman-5f5532f926e205921f7c4a5f2bffeeb1d062f1c3.zip |
Use the exported D-Bus service name instead of hardcoded string
Diffstat (limited to 'plugins/dhclient.c')
-rw-r--r-- | plugins/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dhclient.c b/plugins/dhclient.c index 612d02af..bdf877af 100644 --- a/plugins/dhclient.c +++ b/plugins/dhclient.c @@ -40,6 +40,7 @@ #include <connman/plugin.h> #include <connman/dhcp.h> +#include <connman/dbus.h> #define DHCLIENT_INTF "org.isc.dhclient" #define DHCLIENT_PATH "/org/isc/dhclient" @@ -314,8 +315,7 @@ static int plugin_init(void) connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); busname = dbus_bus_get_unique_name(connection); - - busname = "org.freedesktop.connman"; + busname = CONNMAN_SERVICE; dbus_connection_add_filter(connection, dhclient_filter, NULL, NULL); |