From: Marcel Holtmann Date: Sat, 28 Jun 2008 08:19:02 +0000 (+0200) Subject: Use constants for the dhclient interface and path values X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~4841 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddebf05b54091172088efbf57069f14163ea33c8;p=profile%2Fivi%2Fconnman.git Use constants for the dhclient interface and path values --- diff --git a/scripts/dhclient-script.c b/scripts/dhclient-script.c index 70687fd..68b755a 100644 --- a/scripts/dhclient-script.c +++ b/scripts/dhclient-script.c @@ -29,6 +29,9 @@ #include +#define DHCLIENT_INTF "org.isc.dhclient" +#define DHCLIENT_PATH "/org/isc/dhclient" + extern char **environ; static void append(DBusMessageIter *dict, const char *pattern) @@ -80,8 +83,8 @@ int main(int argc, char *argv[]) return 0; } - msg = dbus_message_new_method_call(busname, "/org/isc/dhclient", - "org.isc.dhclient", "notify"); + msg = dbus_message_new_method_call(busname, DHCLIENT_PATH, + DHCLIENT_INTF, "notify"); if (msg == NULL) { dbus_connection_unref(conn); fprintf(stderr, "Failed to allocate method call\n");