]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Use listnode_add_before for prepending nodes
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Sep 2016 23:55:39 +0000 (23:55 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Sep 2016 23:55:39 +0000 (23:55 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command_match.c

index dd68ca477e41eb589847ceb79931f0b6141a7023..65a5baa9ecc8a54ee9d2de3ac6d86833cc5e3a3e 100644 (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;
         }
     }