summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-28 08:19:02 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2008-06-28 08:19:02 (GMT)
commitddebf05b54091172088efbf57069f14163ea33c8 (patch)
treef7d91d17cf19c17ae02290350c287e8b810cfaae /scripts
parent5f5532f926e205921f7c4a5f2bffeeb1d062f1c3 (diff)
downloadconnman-ddebf05b54091172088efbf57069f14163ea33c8.zip
connman-ddebf05b54091172088efbf57069f14163ea33c8.tar.gz
connman-ddebf05b54091172088efbf57069f14163ea33c8.tar.bz2
Use constants for the dhclient interface and path values
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dhclient-script.c7
1 files changed, 5 insertions, 2 deletions
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 <dbus/dbus.h>
+#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");