utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 2 May 2013 08:47:40 +0000 (10:47 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 2 May 2013 08:47:40 +0000 (10:47 +0200)
utils.h

diff --git a/utils.h b/utils.h
index 3a8e557063be53dfd52d591c37fc2134a2f5a778..23795e592b5e96c591a26c2575240339d9b8169c 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -63,7 +63,7 @@ static inline void vlist_simple_update(struct vlist_simple_tree *tree)
 static inline void vlist_simple_add(struct vlist_simple_tree *tree, struct vlist_simple_node *node)
 {
        node->version = tree->version;
-       list_add(&node->list, &tree->list);
+       list_add_tail(&node->list, &tree->list);
 }
 
 #define vlist_simple_for_each_element(tree, element, node_member) \