summaryrefslogtreecommitdiff
path: root/lib/command_graph.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 18:16:26 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 18:16:26 +0000
commitb3899769660fe891d5ea845e8ea64988743c1ccd (patch)
tree90ab48a130e27273fe4bb04cc93379cddbf6e455 /lib/command_graph.h
parentef955a80a635f5fb821a640f7e1d7aaac8ec5e5e (diff)
lib: Unrefactor to signed long long for ranges
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.h')
-rw-r--r--lib/command_graph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/command_graph.h b/lib/command_graph.h
index 925133c203..e1feb9f77f 100644
--- a/lib/command_graph.h
+++ b/lib/command_graph.h
@@ -23,13 +23,13 @@ enum graph_node_type
struct graph_node
{
enum graph_node_type type;// data type this node matches or holds
- int is_start; // whether this node is a start node
+ unsigned int is_start; // whether this node is a start node
vector children; // this node's children
struct graph_node * end; // pointer to end for SELECTOR_GN & OPTION_GN
char* text; // for WORD_GN and VARIABLE_GN
- long value; // for NUMBER_GN
- int min, max; // for RANGE_GN
+ long long value; // for NUMBER_GN
+ long long min, max; // for RANGE_GN
/* cmd_element struct pointer, only valid for END_GN */
struct cmd_element *element;
@@ -37,7 +37,7 @@ struct graph_node
char *arg;
/* refcount for node parents */
- int refs;
+ unsigned int refs;
};
/*