From 07581f6de007c7b8aa26b135a4dcd5f1edfe2820 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 27 Jun 2025 21:38:34 +0100 Subject: [PATCH] core: queue: update b_queue_empty parameter to be a const ptr --- core/include/blue/core/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/blue/core/queue.h b/core/include/blue/core/queue.h index 31c244d..1d25c99 100644 --- a/core/include/blue/core/queue.h +++ b/core/include/blue/core/queue.h @@ -38,7 +38,7 @@ static inline void b_queue_init(b_queue *q) { memset(q, 0x00, sizeof *q); } -static inline bool b_queue_empty(b_queue *q) +static inline bool b_queue_empty(const b_queue *q) { return q->q_first == NULL; }