diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-29 19:10:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-29 19:10:09 +0200 |
commit | 966c66e34940001a40806142ecebaae61b478444 (patch) | |
tree | d1c53a01b5148c0ca02848ee5f621ad63f9d3969 /src/core | |
parent | 8f88ecf6232fe6c46eecafad7c421096bb29b617 (diff) |
tree-wide: get rid of a few more explicit bus parameters
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/dbus.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c index d1843aa290..4005aac7e7 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -147,13 +147,11 @@ static int signal_activation_request(sd_bus_message *message, void *userdata, sd _cleanup_bus_message_unref_ sd_bus_message *reply = NULL; Manager *m = userdata; const char *name; - sd_bus *bus; Unit *u; int r; assert(message); assert(m); - assert_se(bus = sd_bus_message_get_bus(message)); r = sd_bus_message_read(message, "s", &name); if (r < 0) { @@ -189,7 +187,7 @@ failed: log_debug("D-Bus activation failed for %s: %s", name, bus_error_message(&error, r)); - r = sd_bus_message_new_signal(bus, &reply, "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Activator", "ActivationFailure"); + r = sd_bus_message_new_signal(sd_bus_message_get_bus(message), &reply, "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Activator", "ActivationFailure"); if (r < 0) { bus_log_create_error(r); return 0; @@ -201,7 +199,7 @@ failed: return 0; } - r = sd_bus_send_to(bus, reply, "org.freedesktop.DBus", NULL); + r = sd_bus_send_to(NULL, reply, "org.freedesktop.DBus", NULL); if (r < 0) return log_error_errno(r, "Failed to respond with to bus activation request: %m"); |