summaryrefslogtreecommitdiff
path: root/lib/grammar_sandbox.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 17:48:57 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 17:48:57 +0000
commit67656e9b65ab7c6bb979be72b4917cfd4a2241b6 (patch)
tree823937fe0aded2bcfad54dfdea570259bd4820ac /lib/grammar_sandbox.c
parentff788d089ac145ac06b99018811f46a9f6b69dda (diff)
all: added CHECK ME for DEFUNs that look at argc
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/grammar_sandbox.c')
-rw-r--r--lib/grammar_sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c
index 41fee1c1cb..34e0b81064 100644
--- a/lib/grammar_sandbox.c
+++ b/lib/grammar_sandbox.c
@@ -57,6 +57,7 @@ DEFUN (grammar_test,
GRAMMAR_STR
"command to pass to new parser\n")
{
+ /* CHECK ME argc referenced below */
// make a string from tokenized command line
char *command = argv_concat (argv, argc, 0);
@@ -80,6 +81,7 @@ DEFUN (grammar_test_complete,
"attempt to complete input on DFA\n"
"command to complete")
{
+ /* CHECK ME argc referenced below */
char *cmdstr = argv_concat (argv, argc, 0);
vector command = cmd_make_strvec (cmdstr);
@@ -129,6 +131,7 @@ DEFUN (grammar_test_match,
"attempt to match input on DFA\n"
"command to match")
{
+ /* CHECK ME argc referenced below */
if (argv[0][0] == '#')
return CMD_SUCCESS;