summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-05-02 10:47:40 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-05-02 10:47:40 +0200
commit24f5ed4b8b6c3c6f27e84e731b7682d3a5cc29d0 (patch)
tree26bfea611157e12127f33cab92aa54621b0805ef
parente33ab96c8b41867d655e2ee5e4f58a7d3101d9d2 (diff)
utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of entries
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 3a8e557..23795e5 100644
--- 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) \