diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-05-02 10:47:40 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-05-02 10:47:40 +0200 |
commit | 24f5ed4b8b6c3c6f27e84e731b7682d3a5cc29d0 (patch) | |
tree | 26bfea611157e12127f33cab92aa54621b0805ef /utils.h | |
parent | e33ab96c8b41867d655e2ee5e4f58a7d3101d9d2 (diff) |
utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of entries
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) \ |