From 5db8d040113533ea000585244ebe039f6412c000 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 9 Jun 2023 10:02:17 +0200 Subject: worker_queue: fix worker_queue_add_last --- src/worker_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker_queue.c b/src/worker_queue.c index 9154e24..fd449c1 100644 --- a/src/worker_queue.c +++ b/src/worker_queue.c @@ -75,7 +75,7 @@ void worker_queue_add_first(struct worker_queue *queue, struct worker *entry) void worker_queue_add_last(struct worker_queue *queue, struct worker *entry) { - SIMPLEQ_INSERT_HEAD(queue, entry, entries); + SIMPLEQ_INSERT_TAIL(queue, entry, entries); } struct worker *worker_queue_remove_first(struct worker_queue *queue) -- cgit v1.2.3