From 24f5ed4b8b6c3c6f27e84e731b7682d3a5cc29d0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 2 May 2013 10:47:40 +0200 Subject: [PATCH] utils: use list_add_tail() in vlist_simple_add() to preserve user-defined order of entries --- utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.25.1