diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-09-10 19:39:25 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-09-12 01:29:55 -0700 |
commit | a61100f4367af748caee2b1860438a59e2a1f76e (patch) | |
tree | 2449e1df688454a33a6199dc9665563ebfd91617 | |
parent | b2d4629d1776dbdef9924a0ded29e733de150ccc (diff) |
list: constify list_empty()
-rw-r--r-- | src/libvmon/list.h | 2 | ||||
-rw-r--r-- | src/list.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libvmon/list.h b/src/libvmon/list.h index 48bca36..04cafd6 100644 --- a/src/libvmon/list.h +++ b/src/libvmon/list.h @@ -130,7 +130,7 @@ static inline void list_move_tail(struct list_head *list, * list_empty - tests whether a list is empty * @head: the list to test. */ -static inline int list_empty(struct list_head *head) +static inline int list_empty(const struct list_head *head) { return head->next == head; } @@ -130,7 +130,7 @@ static inline void list_move_tail(struct list_head *list, * list_empty - tests whether a list is empty * @head: the list to test. */ -static inline int list_empty(struct list_head *head) +static inline int list_empty(const struct list_head *head) { return head->next == head; } |