projects
/
connman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove disabled code fragments of old element interface
[connman]
/
scripts
/
dhclient-script.c
diff --git
a/scripts/dhclient-script.c
b/scripts/dhclient-script.c
index
70687fd
..
68b755a
100644
(file)
--- a/
scripts/dhclient-script.c
+++ b/
scripts/dhclient-script.c
@@
-29,6
+29,9
@@
#include <dbus/dbus.h>
#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)
extern char **environ;
static void append(DBusMessageIter *dict, const char *pattern)
@@
-80,8
+83,8
@@
int main(int argc, char *argv[])
return 0;
}
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");
if (msg == NULL) {
dbus_connection_unref(conn);
fprintf(stderr, "Failed to allocate method call\n");