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 /minecproxy | |
parent | 06a2edfc72a894054ed710d338504242f15d6071 (diff) |
Update list.h to latest kernel version
Diffstat (limited to 'minecproxy')
-rw-r--r-- | minecproxy/main.c | 2 | ||||
-rw-r--r-- | minecproxy/ptimer.c | 2 | ||||
-rw-r--r-- | minecproxy/server.c | 10 |
3 files changed, 7 insertions, 7 deletions
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; |