summaryrefslogtreecommitdiff
path: root/tools/permutations.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-18 16:24:47 +0100
committerQuentin Young <qlyoung@users.noreply.github.com>2017-05-15 10:27:43 -0400
commit5894e76da7974eb00f4c8277a67630f5e50cec53 (patch)
tree24a6904b37e39aea941afe2e26b4a7ef6a63d1fd /tools/permutations.c
parent16705ecc653dd657c5b8149934d8734e89c27c07 (diff)
lib: parser: split off & rename graph handling
Put core CLI graph stuff in lib/command_graph.[ch] and consistently prefix all function names with "cmd_". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools/permutations.c')
-rw-r--r--tools/permutations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/permutations.c b/tools/permutations.c
index 88d1464697..72ce634f0c 100644
--- a/tools/permutations.c
+++ b/tools/permutations.c
@@ -43,9 +43,9 @@ int main (int argc, char *argv[])
cmd->string = strdup(argv[1]);
struct graph *graph = graph_new();
- struct cmd_token *token = new_cmd_token (START_TKN, cmd->attr, NULL, NULL);
+ struct cmd_token *token = cmd_token_new (START_TKN, cmd->attr, NULL, NULL);
graph_new_node (graph, token, NULL);
- command_parse_format (graph, cmd);
+ cmd_graph_parse (graph, cmd);
permute (vector_slot (graph->nodes, 0));
}