summaryrefslogtreecommitdiff
path: root/minecctl
diff options
context:
space:
mode:
Diffstat (limited to 'minecctl')
-rw-r--r--minecctl/minecctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c
index c8cc34d..6ccf413 100644
--- a/minecctl/minecctl.c
+++ b/minecctl/minecctl.c
@@ -168,9 +168,9 @@ allocate_server()
struct server *server;
server = zmalloc(sizeof(*server));
- list_init(&server->rcon_addrs);
- list_init(&server->mc_addrs);
- list_init(&server->list);
+ INIT_LIST_HEAD(&server->rcon_addrs);
+ INIT_LIST_HEAD(&server->mc_addrs);
+ INIT_LIST_HEAD(&server->list);
return server;
}
@@ -514,7 +514,7 @@ main(int argc, char **argv)
set_use_colors();
cfg = zmalloc(sizeof(*cfg));
- list_init(&cfg->servers);
+ INIT_LIST_HEAD(&cfg->servers);
parse_cmdline(argc, argv);