From 287a4acf837fbb0a09e5e784134714e6fe2a84a8 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 21 Sep 2016 23:55:39 +0000 Subject: lib: Use listnode_add_before for prepending nodes Signed-off-by: Quentin Young --- lib/command_match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/command_match.c b/lib/command_match.c index dd68ca477..65a5baa9e 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -260,7 +260,7 @@ command_match_r (struct graph_node *start, vector vline, unsigned int n) struct cmd_token *token = start->data; struct cmd_token *copy = copy_cmd_token (token); copy->arg = XSTRDUP (MTYPE_CMD_TOKENS, input_token); - list_add_node_prev (currbest, currbest->head, copy); + listnode_add_before (currbest, currbest->head, copy); matcher_rv = MATCHER_OK; } } -- cgit v1.2.3