summaryrefslogtreecommitdiff
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 00:58:12 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 00:58:12 +0000
commitf4b0c72e5313927b3a2ddaf02d148992914474a3 (patch)
tree7aeb0d33f3c636463671531475f7066e8045ef39 /lib/command_graph.h
parent8aeffd7ae1aac2552f67aa8b2c7708b4d41c4d55 (diff)
lib: Refactor format parser
Also fix a bug where selector elements beginning with the same word are only parsed once Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index 32a07ce4ea..35a0eee273 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -42,13 +42,10 @@ struct graph_node
/*
* Adds a node as a child of another node.
- * If the new parent has a child that is equal to the prospective child, as
- * determined by cmp_node, then a pointer to the existing node is returned and
- * the prospective child is not added. Otherwise the child node is returned.
*
* @param[in] parent node
* @param[in] child node
- * @return pointer to child if it is added, pointer to existing child otherwise
+ * @return child node, for convenience
*/
struct graph_node *
add_node(struct graph_node *, struct graph_node *);