From 3db729cb8e6822114e9323f4041dcdc080f2fb3c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 18 Feb 2014 19:11:08 +0100 Subject: sd-bus: the bus returned should be the first arg This matches the API of previous headers, such as sd-journal.h. --- src/machine/machinectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/machine') diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index de79996141..32f862d093 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -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; -- cgit v1.2.3-54-g00ecf