From 8315f972b3cecb60cbd5879146c737f3f8d7a841 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Fri, 26 Jun 2020 12:39:23 +0200 Subject: Update list.h to latest kernel version --- minecctl/minecctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'minecctl') 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); -- cgit v1.2.3