chiark / gitweb /
systemctl: sort local host entry before container in list-machines output
[elogind.git] / src / systemctl / systemctl.c
index 8ef3c08db02ec370e25067edcf175472e7abc6d8..5a5681be53417d63529505cb182d897cea64d403 100644 (file)
@@ -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);
 }