X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e9029d4d28254f36f371039d409d6b8052b04042..2dc2f4788add40c2fe7c8fdede76189b54259155:/server/server-queue.c diff --git a/server/server-queue.c b/server/server-queue.c index a1fa181..c65bf6d 100644 --- a/server/server-queue.c +++ b/server/server-queue.c @@ -18,11 +18,17 @@ #include "disorder-server.h" /* the head of the queue is played next, so normally we add to the tail */ -struct queue_entry qhead = { &qhead, &qhead, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; +struct queue_entry qhead = { + .next = &qhead, + .prev = &qhead +}; /* the head of the recent list is the oldest thing, the tail the most recently * played */ -struct queue_entry phead = { &phead, &phead, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; +struct queue_entry phead = { + .next = &phead, + .prev = &phead +}; long pcount;