summaryrefslogtreecommitdiff
path: root/src/import
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-29 18:58:30 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-29 18:58:30 +0200
commit9030ca462bd13cd6536299814e4a71d5c5e85be9 (patch)
tree43716aa3042f274b4578799725cfb03c5682e9d8 /src/import
parent47ee3ee03483efd271642d5043070cbd171f19d4 (diff)
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.c2
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) {