diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-09-21 23:55:39 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-09-21 23:55:39 +0000 |
| commit | 287a4acf837fbb0a09e5e784134714e6fe2a84a8 (patch) | |
| tree | 5158e33c600a7c6d1530b71ff79867bf1cab4255 /lib/command_match.c | |
| parent | 9547b5d072195e77798edba0c0284a856a90c6fb (diff) | |
lib: Use listnode_add_before for prepending nodes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
| -rw-r--r-- | lib/command_match.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |
