diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -269,7 +269,7 @@ list_insert_tail(struct list *list, struct list *node) * Insert a node before another node. */ static inline void -list_insert_before(struct list *next, struct list *node) +list_insert_before(struct list *node, struct list *next) { list_add(next->prev, next, node); } @@ -278,7 +278,7 @@ list_insert_before(struct list *next, struct list *node) * Insert a node after another node. */ static inline void -list_insert_after(struct list *prev, struct list *node) +list_insert_after(struct list *node, struct list *prev) { list_add(prev, prev->next, node); } @@ -463,7 +463,7 @@ list_llsync_insert_tail(struct list *list, struct list *node) * Insert a node before another node. */ static inline void -list_llsync_insert_before(struct list *next, struct list *node) +list_llsync_insert_before(struct list *node, struct list *next) { list_llsync_add(next->prev, next, node); } @@ -472,7 +472,7 @@ list_llsync_insert_before(struct list *next, struct list *node) * Insert a node after another node. */ static inline void -list_llsync_insert_after(struct list *prev, struct list *node) +list_llsync_insert_after(struct list *node, struct list *prev) { list_llsync_add(prev, prev->next, node); } |