summaryrefslogtreecommitdiff
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 17:03:39 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 17:03:39 +0000
commit1a8c390d4abc7c3f599813ddee6ca3990de7576c (patch)
treee7a7978f6423049e91b5de4183804d13a2b78f38 /lib/command_graph.h
parent6d53a10e4cf873ff61a3dada644d15be83dd54c0 (diff)
lib: Fixed bad node copy, modified token regex
When building argv for matched command, only the last node was being copied to argv; the rest were added by reference. Additionally the regex for certain tokens was too restrictive and disallowed characters allowed by the old parser; these have been reinstated. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index dc78475ca6..ed0e98a6e5 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -78,18 +78,6 @@ struct graph_node *
new_node(enum graph_node_type);
/**
- * Copies a node.
- * The children vector is copied, but the pointers the vector
- * holds point to the same data as the original vector.
- * The element, if it exists, is copied.
- *
- * @param[in] pointer to node to copy
- * @return pointer to copied node
- */
-struct graph_node *
-copy_node(struct graph_node *);
-
-/**
* Frees the data associated with a graph_node.
* @param[out] pointer to graph_node to free
*/