diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 00:58:12 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 00:58:12 +0000 |
| commit | f4b0c72e5313927b3a2ddaf02d148992914474a3 (patch) | |
| tree | 7aeb0d33f3c636463671531475f7066e8045ef39 /lib/command_graph.h | |
| parent | 8aeffd7ae1aac2552f67aa8b2c7708b4d41c4d55 (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.h | 5 |
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 *); |
