From 9030ca462bd13cd6536299814e4a71d5c5e85be9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 29 Apr 2015 18:58:30 +0200 Subject: 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. --- src/import/importd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import/importd.c') 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) { -- cgit v1.2.3-54-g00ecf