]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
autostart: Fix bug with containers being started in reverse order 465/head
authorBostjan Skufca <bostjan@a2o.si>
Wed, 4 Mar 2015 19:07:52 +0000 (20:07 +0100)
committerBostjan Skufca <bostjan@a2o.si>
Tue, 10 Mar 2015 10:38:06 +0000 (11:38 +0100)
Signed-off-by: Bostjan Skufca <bostjan@a2o.si>
src/lxc/lxc_autostart.c

index f5b9e32f95d58a7693a58e9ef46e0c6dcce00513..8531208bbd591db4486c37564aee2486330039bb 100644 (file)
@@ -304,7 +304,7 @@ static int cmporder(const void *p1, const void *p2) {
        if (c1_order == c2_order)
                return strcmp(c1->name, c2->name);
        else
-               return (c1_order - c2_order) * -1;
+               return (c1_order - c2_order);
 }
 
 static int toss_list( struct lxc_list *c_groups_list ) {