diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-29 18:58:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-29 18:58:30 +0200 |
commit | 9030ca462bd13cd6536299814e4a71d5c5e85be9 (patch) | |
tree | 43716aa3042f274b4578799725cfb03c5682e9d8 /src/import | |
parent | update TODO (diff) | |
download | systemd-9030ca462bd13cd6536299814e4a71d5c5e85be9.tar.xz systemd-9030ca462bd13cd6536299814e4a71d5c5e85be9.zip |
sd-bus: allow passing NULL as bus parameter to sd_bus_send()
If NULL is specified for the bus it is now automatically derived from
the passed in message.
This commit also changes a number of invocations of sd_bus_send() to
make use of this.
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/importd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/importd.c b/src/import/importd.c index 4f3701f5c5..45d1d93343 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -1064,7 +1064,7 @@ static int method_list_transfers(sd_bus_message *msg, void *userdata, sd_bus_err if (r < 0) return r; - return sd_bus_send(sd_bus_message_get_bus(msg), reply, NULL); + return sd_bus_send(NULL, reply, NULL); } static int method_cancel(sd_bus_message *msg, void *userdata, sd_bus_error *error) { |