From b951eae8000f7cfe657734d5b67b3b93e9b75f1f Mon Sep 17 00:00:00 2001 From: komark06 Date: Sun, 25 Feb 2024 15:54:11 +0800 Subject: [PATCH] Correct function parameter to match implementation This commit ensures that the parameters of the q_free function in 'queue.h' match those in 'queue.c'. --- queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue.c b/queue.c index 652ce1ccb..ce85f7d16 100644 --- a/queue.c +++ b/queue.c @@ -18,7 +18,7 @@ struct list_head *q_new() } /* Free all storage used by queue */ -void q_free(struct list_head *l) {} +void q_free(struct list_head *head) {} /* Insert an element at head of queue */ bool q_insert_head(struct list_head *head, char *s)