lfstack: make cds_lfs_empty argument const
[urcu.git] / include / urcu / list.h
index 4bc88b3f22c505e0f83355d3919eff80fb3ac868..f2d77bb067d0c0ff69342b2aea374cf62706c981 100644 (file)
@@ -88,7 +88,7 @@ void cds_list_move(struct cds_list_head *elem, struct cds_list_head *head)
 
 /* Replace an old entry. */
 static inline
-void cds_list_replace(struct cds_list_head *old, struct cds_list_head *_new)
+void cds_list_replace(const struct cds_list_head *old, struct cds_list_head *_new)
 {
        _new->next = old->next;
        _new->prev = old->prev;
@@ -169,7 +169,7 @@ void cds_list_splice(struct cds_list_head *add, struct cds_list_head *head)
                 pos = (p), p = cds_list_entry((pos)->member.next, __typeof__(*(pos)), member))
 
 static inline
-int cds_list_empty(struct cds_list_head *head)
+int cds_list_empty(const struct cds_list_head *head)
 {
        return head == head->next;
 }
This page took 0.024967 seconds and 4 git commands to generate.