diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-09 10:02:17 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-09 10:02:17 +0200 |
commit | 5db8d040113533ea000585244ebe039f6412c000 (patch) | |
tree | cea377cf3da335318c9fc606a113e61125016960 | |
parent | STAILQ -> SIMPLEQ (diff) | |
download | cimple-5db8d040113533ea000585244ebe039f6412c000.tar.gz cimple-5db8d040113533ea000585244ebe039f6412c000.zip |
worker_queue: fix worker_queue_add_last
-rw-r--r-- | src/worker_queue.c | 2 |
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) |