From 2a426c0236b39a8daec9b735eab5093ef2a20f19 Mon Sep 17 00:00:00 2001 From: yy214123 Date: Sun, 2 Mar 2025 19:48:35 +0800 Subject: [PATCH] Fix incorrect comments The previous comments incorrectly described the behavior using wording from q_insert_head and q_insert_tail, suggesting that the removed string would be inserted. This commit updates the descriptions to clearly explain that the string is copied to an output buffer instead. Change-Id: Ice8c44b485ec223bf1e16b876cf53e650f1b92df --- queue.h | 4 ++-- scripts/checksums | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/queue.h b/queue.h index 8d1823036..bcd1088ee 100644 --- a/queue.h +++ b/queue.h @@ -81,7 +81,7 @@ bool q_insert_tail(struct list_head *head, char *s); /** * q_remove_head() - Remove the element from head of queue * @head: header of queue - * @sp: string would be inserted + * @sp: output buffer where the removed string is copied * @bufsize: size of the string * * If sp is non-NULL and an element is removed, copy the removed string to *sp @@ -101,7 +101,7 @@ element_t *q_remove_head(struct list_head *head, char *sp, size_t bufsize); /** * q_remove_tail() - Remove the element from tail of queue * @head: header of queue - * @sp: string would be inserted + * @sp: output buffer where the removed string is copied * @bufsize: size of the string * * Return: the pointer to element, %NULL if queue is NULL or empty. diff --git a/scripts/checksums b/scripts/checksums index cbfc6e1aa..31710faa7 100644 --- a/scripts/checksums +++ b/scripts/checksums @@ -1,3 +1,3 @@ -db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h +45da6585400a15237f09d896bbb807f85f449e92 queue.h 9be9666430f392924f5d27caa71a412527bf9267 list.h 3bb0192cee08d165fd597a9f6fbb404533e28fcf scripts/check-commitlog.sh