<div dir="auto"><div>This is:</div><div dir="auto">Reviewed-by: Thomas Helland<<a href="mailto:thomashelland90@gmail.com">thomashelland90@gmail.com</a>><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">26. jul. 2018 18.04 skrev "Jason Ekstrand" <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">They're all just querying things about the list and not mutating<br>
anything.<br>
---<br>
 src/util/list.h | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/util/list.h b/src/util/list.h<br>
index 6edb7501109..09d1b4cae64 100644<br>
--- a/src/util/list.h<br>
+++ b/src/util/list.h<br>
@@ -72,7 +72,7 @@ static inline void list_addtail(struct list_head *item, struct list_head *list)<br>
     list->prev = item;<br>
 }<br>
<br>
-static inline bool list_empty(struct list_head *list);<br>
+static inline bool list_empty(const struct list_head *list);<br>
<br>
 static inline void list_replace(struct list_head *from, struct list_head *to)<br>
 {<br>
@@ -101,7 +101,7 @@ static inline void list_delinit(struct list_head *item)<br>
     item->prev = item;<br>
 }<br>
<br>
-static inline bool list_empty(struct list_head *list)<br>
+static inline bool list_empty(const struct list_head *list)<br>
 {<br>
    return list->next == list;<br>
 }<br>
@@ -114,7 +114,7 @@ static inline bool list_is_singular(const struct list_head *list)<br>
    return list->next != NULL && list->next != list && list->next->next == list;<br>
 }<br>
<br>
-static inline unsigned list_length(struct list_head *list)<br>
+static inline unsigned list_length(const struct list_head *list)<br>
 {<br>
    struct list_head *node;<br>
    unsigned length = 0;<br>
@@ -145,7 +145,7 @@ static inline void list_splicetail(struct list_head *src, struct list_head *dst)<br>
    dst->prev = src->prev;<br>
 }<br>
<br>
-static inline void list_validate(struct list_head *list)<br>
+static inline void list_validate(const struct list_head *list)<br>
 {<br>
    struct list_head *node;<br>
    assert(list->next->prev == list && list->prev->next == list);<br>
<font color="#888888">-- <br>
2.17.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></blockquote></div><br></div></div></div>