lib: Use listnode_add_before for prepending nodes

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2016-09-21 23:55:39 +00:00
parent 9547b5d072
commit 287a4acf83

View File

@ -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;
}
}