mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 21:50:39 +00:00
lib: Use listnode_add_before for prepending nodes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
9547b5d072
commit
287a4acf83
@ -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 *token = start->data;
|
||||||
struct cmd_token *copy = copy_cmd_token (token);
|
struct cmd_token *copy = copy_cmd_token (token);
|
||||||
copy->arg = XSTRDUP (MTYPE_CMD_TOKENS, input_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;
|
matcher_rv = MATCHER_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user