diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-07-27 23:30:21 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-07-27 23:30:21 +0000 |
| commit | 76699ae7e0358c57a1186b88962d7233a7057d76 (patch) | |
| tree | 1899108929000900e469e1176c21744199b66c26 /lib/command_graph.h | |
| parent | 5a5d576b346b03888636bcb0af31efb8a1e43cc2 (diff) | |
lib: Improve argv construction
Fixed a variety of failure cases and wrote a nice
doc string. Reverted add_node doc string to correct
explanation of procedure.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.h')
| -rw-r--r-- | lib/command_graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h index f82bbd052b..a9ffe0f7b6 100644 --- a/lib/command_graph.h +++ b/lib/command_graph.h @@ -5,14 +5,14 @@ enum graph_node_type { - WORD_GN, IPV4_GN, IPV4_PREFIX_GN, IPV6_GN, IPV6_PREFIX_GN, - VARIABLE_GN, + WORD_GN, RANGE_GN, NUMBER_GN, + VARIABLE_GN, SELECTOR_GN, OPTION_GN, NUL_GN, @@ -41,7 +41,7 @@ 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 return value is NULL. + * the prospective child is not added. Otherwise the child node is returned. * * @param[in] parent node * @param[in] child node |
