From a61100f4367af748caee2b1860438a59e2a1f76e Mon Sep 17 00:00:00 2001
From: Vito Caputo <vcaputo@pengaru.com>
Date: Fri, 10 Sep 2021 19:39:25 -0700
Subject: list: constify list_empty()

---
 src/libvmon/list.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/libvmon')

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;
 }
-- 
cgit v1.2.3