diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-26 12:39:23 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-26 12:39:23 +0200 |
commit | 8315f972b3cecb60cbd5879146c737f3f8d7a841 (patch) | |
tree | 2c593b1e3dd36fcc6803baa45039a4623f13b582 /minecctl | |
parent | 06a2edfc72a894054ed710d338504242f15d6071 (diff) |
Update list.h to latest kernel version
Diffstat (limited to 'minecctl')
-rw-r--r-- | minecctl/minecctl.c | 8 |
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); |