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 --- minecproxy/main.c | 2 +- minecproxy/ptimer.c | 2 +- minecproxy/server.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'minecproxy') diff --git a/minecproxy/main.c b/minecproxy/main.c index 99513ee..f5e6c88 100644 --- a/minecproxy/main.c +++ b/minecproxy/main.c @@ -447,7 +447,7 @@ cfg_init(int argc, char **argv) die("malloc: %m"); uring_task_init(&cfg->task, "main", NULL, cfg_free); - list_init(&cfg->servers); + INIT_LIST_HEAD(&cfg->servers); cfg->cfg_dir = DEFAULT_CFG_DIR; cfg->announce_interval = DEFAULT_ANNOUNCE_INTERVAL; diff --git a/minecproxy/ptimer.c b/minecproxy/ptimer.c index 5f9cf5d..845fbfa 100644 --- a/minecproxy/ptimer.c +++ b/minecproxy/ptimer.c @@ -214,7 +214,7 @@ ptimer_init() ptimer->task_count = 0; ptimer->previous_time = time(NULL); - list_init(&ptimer->ptasks); + INIT_LIST_HEAD(&ptimer->ptasks); uring_task_init(&ptimer->task, "ptimer", uring_parent(), ptimer_free); uring_task_set_fd(&ptimer->task, tfd); cfg->ptimer = ptimer; diff --git a/minecproxy/server.c b/minecproxy/server.c index c1480f3..39b4024 100644 --- a/minecproxy/server.c +++ b/minecproxy/server.c @@ -824,11 +824,11 @@ server_new(const char *name) rcon_init(server); - list_init(&server->remotes); - list_init(&server->locals); - list_init(&server->proxys); - list_init(&server->rcons); - list_init(&server->dnslookups); + INIT_LIST_HEAD(&server->remotes); + INIT_LIST_HEAD(&server->locals); + INIT_LIST_HEAD(&server->proxys); + INIT_LIST_HEAD(&server->rcons); + INIT_LIST_HEAD(&server->dnslookups); list_add(&server->list, &cfg->servers); return server; -- cgit v1.2.3