summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/list.h b/src/list.h
index 85d3dc2..18a2206 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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);
}