summaryrefslogtreecommitdiffstats
path: root/src/machine
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-02-18 19:11:08 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-20 00:03:09 +0100
commit3db729cb8e6822114e9323f4041dcdc080f2fb3c (patch)
treed392f66240c14bb102569cea7977fb3b293b91c3 /src/machine
parentudev: net-config - allow interface names to be set from the hwdb (diff)
downloadsystemd-3db729cb8e6822114e9323f4041dcdc080f2fb3c.tar.xz
systemd-3db729cb8e6822114e9323f4041dcdc080f2fb3c.zip
sd-bus: the bus returned should be the first arg
This matches the API of previous headers, such as sd-journal.h.
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machinectl.c2
1 files changed, 1 insertions, 1 deletions
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;