summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-18 03:53:02 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-18 04:46:55 +0100
commit50933da01b71d3f5a0b869731fc41ce89881db69 (patch)
treed715c05bc00f8672ec5d5a93e1e61686b7d96ac9 /src/systemctl/systemctl.c
parent90c3f79dc74229134818e78cb97d315e28ee93b5 (diff)
systemctl: sort local host entry before container in list-machines output
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 8ef3c08db0..5a5681be53 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1582,7 +1582,7 @@ static int compare_machine_info(const void *a, const void *b) {
const struct machine_info *u = a, *v = b;
if (u->is_host != v->is_host)
- return u->is_host > v->is_host ? 1 : -1;
+ return u->is_host > v->is_host ? -1 : 1;
return strcasecmp(u->name, v->name);
}