diff options
Diffstat (limited to 'lib/linklist.c')
-rw-r--r-- | lib/linklist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/linklist.c b/lib/linklist.c index 370b2fa61..4b16f07dd 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -159,6 +159,13 @@ listnode_add_after (struct list *list, struct listnode *pp, void *val) list->count++; } +/* Move given listnode to tail of the list */ +void +listnode_move_to_tail (struct list *l, struct listnode *n) +{ + LISTNODE_DETACH(l,n); + LISTNODE_ATTACH(l,n); +} /* Delete specific date pointer from the list. */ void |