From: Marcel Holtmann Date: Sat, 28 Jun 2008 08:17:56 +0000 (+0200) Subject: Use the exported D-Bus service name instead of hardcoded string X-Git-Tag: 0.1~330 X-Git-Url: http://git.maemo.org/git/?p=connman;a=commitdiff_plain;h=5f5532f926e205921f7c4a5f2bffeeb1d062f1c3 Use the exported D-Bus service name instead of hardcoded string --- diff --git a/plugins/dhclient.c b/plugins/dhclient.c index 612d02a..bdf877a 100644 --- a/plugins/dhclient.c +++ b/plugins/dhclient.c @@ -40,6 +40,7 @@ #include #include +#include #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);