From: Jo-Philipp Wich Date: Thu, 2 May 2013 08:47:40 +0000 (+0200) Subject: utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=24f5ed4b8b6c3c6f27e84e731b7682d3a5cc29d0;p=project%2Fnetifd.git utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of entries --- 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) \