summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-09-22 01:55:39 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-09-22 01:55:39 +0200
commit287a4acf837fbb0a09e5e784134714e6fe2a84a8 (patch)
tree5158e33c600a7c6d1530b71ff79867bf1cab4255 /lib
parentlib: Update copyright headers (diff)
downloadfrr-287a4acf837fbb0a09e5e784134714e6fe2a84a8.tar.xz
frr-287a4acf837fbb0a09e5e784134714e6fe2a84a8.zip
lib: Use listnode_add_before for prepending nodes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/command_match.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}