From: Lennart Poettering Date: Tue, 18 Mar 2014 02:53:02 +0000 (+0100) Subject: systemctl: sort local host entry before container in list-machines output X-Git-Tag: v212~122 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=50933da01b71d3f5a0b869731fc41ce89881db69;p=elogind.git systemctl: sort local host entry before container in list-machines output --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 8ef3c08db..5a5681be5 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); }