diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-11-18 13:53:07 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-11-18 13:53:07 +0100 |
commit | 8e408b48ca51b25f2e80cbaf1cec5856c5b087eb (patch) | |
tree | d271caf192414f80b30df39e827bd14e2e083eb0 /include/libHX/list.h | |
parent | ec30c5e79707dfb6a52b0e5f7dd476374888e89c (diff) | |
parent | 21fcced971129ae4fbf9c9de3cfdec4cf96a46cf (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'include/libHX/list.h')
-rw-r--r-- | include/libHX/list.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/libHX/list.h b/include/libHX/list.h index 3146c22..f226bec 100644 --- a/include/libHX/list.h +++ b/include/libHX/list.h @@ -63,37 +63,37 @@ static __inline__ bool HXlist_empty(const struct HXlist_head *head) } #define HXlist_for_each(pos, head) \ - for ((pos) = (head)->next; (pos) != static_cast(void *, (head)); \ + for ((pos) = (head)->next; (pos) != static_cast(const void *, (head)); \ (pos) = (pos)->next) #define HXlist_for_each_rev(pos, head) \ - for ((pos) = (head)->prev; (pos) != static_cast(void *, (head)); \ + for ((pos) = (head)->prev; (pos) != static_cast(const void *, (head)); \ (pos) = (pos)->prev) #define HXlist_for_each_safe(pos, n, head) \ for ((pos) = (head)->next, (n) = (pos)->next; \ - (pos) != static_cast(void *, (head)); \ + (pos) != static_cast(const void *, (head)); \ (pos) = (n), (n) = (pos)->next) #define HXlist_for_each_rev_safe(pos, n, head) \ for ((pos) = (head)->prev, (n) = (pos)->prev; \ - (pos) != static_cast(void *, (head)); \ + (pos) != static_cast(const void *, (head)); \ (pos) = (n), (n) = (pos)->prev) #define HXlist_for_each_entry(pos, head, member) \ for ((pos) = HXlist_entry((head)->next, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = HXlist_entry((pos)->member.next, __typeof__(*(pos)), member)) #define HXlist_for_each_entry_rev(pos, head, member) \ for ((pos) = HXlist_entry((head)->prev, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = HXlist_entry((pos)->member.prev, __typeof__(*(pos)), member)) #define HXlist_for_each_entry_safe(pos, n, head, member) \ for ((pos) = HXlist_entry((head)->next, __typeof__(*(pos)), member), \ (n) = HXlist_entry((pos)->member.next, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = (n), (n) = HXlist_entry((n)->member.next, __typeof__(*(n)), \ member)) |