From: Quentin Young Date: Wed, 21 Sep 2016 23:55:39 +0000 (+0000) Subject: lib: Use listnode_add_before for prepending nodes X-Git-Tag: frr-3.0-branchpoint~129^2~221 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=287a4acf837fbb0a09e5e784134714e6fe2a84a8;p=matthieu%2Ffrr.git lib: Use listnode_add_before for prepending nodes Signed-off-by: Quentin Young --- diff --git a/lib/command_match.c b/lib/command_match.c index dd68ca477e..65a5baa9ec 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; } }