aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 10:02:17 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 10:02:17 +0200
commit5db8d040113533ea000585244ebe039f6412c000 (patch)
treecea377cf3da335318c9fc606a113e61125016960 /src
parentSTAILQ -> SIMPLEQ (diff)
downloadcimple-5db8d040113533ea000585244ebe039f6412c000.tar.gz
cimple-5db8d040113533ea000585244ebe039f6412c000.zip
worker_queue: fix worker_queue_add_last
Diffstat (limited to '')
-rw-r--r--src/worker_queue.c2
1 files changed, 1 insertions, 1 deletions
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)