sd-bus: the bus returned should be the first arg

This matches the API of previous headers, such as sd-journal.h.
This commit is contained in:
Jason A. Donenfeld
2014-02-20 00:03:09 +01:00
committed by Lennart Poettering
parent e51660ae56
commit 3db729cb8e
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ static int login_machine(sd_bus *bus, char **args, unsigned n) {
return -EIO;
}
r = sd_bus_open_system_container(args[1], &container_bus);
r = sd_bus_open_system_container(&container_bus, args[1]);
if (r < 0) {
log_error("Failed to get container bus: %s", strerror(-r));
return r;