From eceb106640e0279ed89e476c25f37f3b2da860fc Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 27 Jul 2016 01:35:46 +0000 Subject: lib: Add matching and argv support Queries may be run against DFA's to find matching cmd_element, and argument lists may be constructed. Signed-off-by: Quentin Young --- lib/command_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/command_graph.c') diff --git a/lib/command_graph.c b/lib/command_graph.c index b81e35ac9a..38baa802c3 100644 --- a/lib/command_graph.c +++ b/lib/command_graph.c @@ -6,8 +6,8 @@ * @author Quentin Young */ -#include #include "command_graph.h" +#include #include "memory.h" struct graph_node * @@ -100,7 +100,7 @@ describe_node(struct graph_node *node, char* buffer, unsigned int bufsize) snprintf(buffer, bufsize, node->text); break; case NUMBER_GN: - snprintf(buffer, bufsize, "%d", node->value); + snprintf(buffer, bufsize, "%ld", node->value); break; case SELECTOR_GN: snprintf(buffer, bufsize, "<>"); -- cgit v1.2.3