Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: dhcpcd-dbus.c

Issue 2865017: Put Introspect method on the correct interface, (Closed) Base URL: ssh://git@chromiumos-git/dhcpcd.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dhcpcd-dbus.conf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dhcpcd-dbus.c
diff --git a/dhcpcd-dbus.c b/dhcpcd-dbus.c
index 36390107f6bc795064e9406cacfb2db142d33b9b..0a99942c471b09fdebaa51b873c83383c6965abd 100644
--- a/dhcpcd-dbus.c
+++ b/dhcpcd-dbus.c
@@ -472,7 +472,8 @@ msg_handler(DBusConnection *con, DBusMessage *msg, _unused void *data)
{
#define IsMethod(msg, method) \
dbus_message_is_method_call(msg, DHCPCD_SERVICE, method)
- if (IsMethod(msg, "Introspect")) {
+ if (dbus_message_is_method_call(msg, DBUS_INTERFACE_INTROSPECTABLE,
+ "Introspect")) {
return introspect(con, msg);
} else if (IsMethod(msg, "GetVersion")) {
return version(con, msg, VERSION);
« no previous file with comments | « no previous file | dhcpcd-dbus.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698