]> git.proxmox.com Git - mirror_frr.git/blobdiff - tools/permutations.c
lib: parser: split off & rename graph handling
[mirror_frr.git] / tools / permutations.c
index 88d1464697c7d0e36b8aa7d7faf49ead6e6f3ca8..72ce634f0c6290f600ae95104042d09db4cb1da8 100644 (file)
@@ -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));
 }