diff options
Diffstat (limited to 'minecctl/minecctl.c')
-rw-r--r-- | minecctl/minecctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c index 6ccf413..bbe605b 100644 --- a/minecctl/minecctl.c +++ b/minecctl/minecctl.c @@ -303,9 +303,7 @@ set_server(const char *name) list_for_each_entry(server, &cfg->servers, list) { if (streq(name, server->shortname)) { - /* This puts the chosen server first in the list */ - list_del(&server->list); - list_add(&server->list, &cfg->servers); + list_rotate_to_front(&server->list, &cfg->servers); return; } } |