summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/command.c11
-rw-r--r--lib/distribute.c2
-rw-r--r--lib/filter.c4
-rw-r--r--lib/grammar_sandbox.c3
-rw-r--r--lib/if.c3
-rw-r--r--lib/plist.c4
-rw-r--r--lib/routemap.c5
-rw-r--r--lib/thread.c2
-rw-r--r--lib/vty.c3
9 files changed, 37 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 22416ea73..4be178e12 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1016,6 +1016,7 @@ DEFUN (config_quit,
"quit",
"Exit current mode and down to previous mode\n")
{
+ /* CHECK ME argc referenced below */
return config_exit (self, vty, argc, argv);
}
@@ -1137,6 +1138,7 @@ DEFUN (config_write,
"Write configuration currently in memory\n"
"Write configuration to terminal\n")
{
+ /* CHECK ME argc referenced below */
int idx_type = 1;
unsigned int i;
int fd;
@@ -1282,6 +1284,7 @@ DEFUN (show_running_config,
SHOW_STR
"running configuration (same as write terminal/memory)\n")
{
+ /* CHECK ME argc referenced below */
return config_write (self, vty, argc, argv);
}
@@ -1293,6 +1296,7 @@ DEFUN (copy_runningconf_startupconf,
"Copy running config to... \n"
"Copy running config to startup config (same as write file)\n")
{
+ /* CHECK ME argc referenced below */
return config_write (self, vty, argc, argv);
}
/** -- **/
@@ -1374,6 +1378,7 @@ DEFUN (config_password,
"Specifies a HIDDEN password will follow\n"
"The password string\n")
{
+ /* CHECK ME argc referenced below */
int idx_8 = 1;
int idx_word = 2;
if (argc == 3) // '8' was specified
@@ -1420,6 +1425,7 @@ DEFUN (config_enable_password,
"dummy string \n"
"The HIDDEN 'enable' password string\n")
{
+ /* CHECK ME argc referenced below */
int idx_8 = 2;
int idx_word = 3;
/* Crypt type is specified. */
@@ -1626,6 +1632,7 @@ DEFUN (config_logmsg,
LOG_LEVEL_DESC
"The message to send\n")
{
+ /* CHECK ME argc referenced below */
int idx_log_level = 1;
int level;
char *message;
@@ -1699,6 +1706,7 @@ DEFUN (config_log_stdout,
"Set stdout logging level\n"
LOG_LEVEL_DESC)
{
+ /* CHECK ME argc referenced below */
int idx_log_level = 2;
if (argc == 2)
{
@@ -1732,6 +1740,7 @@ DEFUN (config_log_monitor,
"Set terminal line (monitor) logging level\n"
LOG_LEVEL_DESC)
{
+ /* CHECK ME argc referenced below */
int idx_log_level = 2;
if (argc == 2)
{
@@ -1820,6 +1829,7 @@ DEFUN (config_log_file,
"Logging filename\n"
LOG_LEVEL_DESC)
{
+ /* CHECK ME argc referenced below */
int idx_filename = 2;
int idx_log_levels = 3;
if (argc == 4)
@@ -1860,6 +1870,7 @@ DEFUN (config_log_syslog,
"Set syslog logging level\n"
LOG_LEVEL_DESC)
{
+ /* CHECK ME argc referenced below */
int idx_log_levels = 2;
if (argc == 3)
{
diff --git a/lib/distribute.c b/lib/distribute.c
index 8a0083391..e0b4f0468 100644
--- a/lib/distribute.c
+++ b/lib/distribute.c
@@ -308,6 +308,7 @@ DEFUN (distribute_list,
"Filter outgoing routing updates\n"
"Interface name\n")
{
+ /* CHECK ME argc referenced below */
int prefix = (argv[1]->type == WORD_TKN) ? 1 : 0;
/* Check of distribute list type. */
@@ -339,6 +340,7 @@ DEFUN (no_distribute_list,
"Filter outgoing routing updates\n"
"Interface name\n")
{
+ /* CHECK ME argc referenced below */
int prefix = (argv[2]->type == WORD_TKN) ? 1 : 0;
/* Check of distribute list type. */
diff --git a/lib/filter.c b/lib/filter.c
index 11dd7cd1c..fd80b2a63 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -1480,6 +1480,7 @@ DEFUN (access_list_remark,
"Access list entry comment\n"
"Comment up to 100 characters\n")
{
+ /* CHECK ME argc referenced below */
int idx_acl = 1;
struct access_list *access;
@@ -1525,6 +1526,7 @@ DEFUN (no_access_list_remark_comment,
"Access list entry comment\n"
"Comment up to 100 characters\n")
{
+ /* CHECK ME argc referenced below */
return no_access_list_remark (self, vty, argc, argv);
}
@@ -1673,6 +1675,7 @@ DEFUN (ipv6_access_list_remark,
"Access list entry comment\n"
"Comment up to 100 characters\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 2;
struct access_list *access;
@@ -1712,6 +1715,7 @@ DEFUN (no_ipv6_access_list_remark_comment,
"Access list entry comment\n"
"Comment up to 100 characters\n")
{
+ /* CHECK ME argc referenced below */
return no_ipv6_access_list_remark (self, vty, argc, argv);
}
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c
index 41fee1c1c..34e0b8106 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;
diff --git a/lib/if.c b/lib/if.c
index 3afba9879..7b55a327c 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -677,6 +677,7 @@ DEFUN (interface_desc,
"Interface specific description\n"
"Characters describing this interface\n")
{
+ /* CHECK ME argc referenced below */
struct interface *ifp;
if (argc == 1)
@@ -755,6 +756,7 @@ DEFUN (interface,
"Interface's name\n"
VRF_CMD_HELP_STR)
{
+ /* CHECK ME argc referenced below */
int idx_ifname = 1;
const char *ifname = argv[idx_ifname]->arg;
const char *vrfname = (argc > 2) ? argv[3]->arg : NULL;
@@ -899,6 +901,7 @@ DEFUN (show_address,
"address\n"
VRF_CMD_HELP_STR)
{
+ /* CHECK ME argc referenced below */
int idx_vrf_cmd_str = 2;
struct listnode *node;
struct listnode *node2;
diff --git a/lib/plist.c b/lib/plist.c
index 0d1cafde6..4170230d8 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -1905,6 +1905,7 @@ DEFUN (ip_prefix_list_description,
"Prefix-list specific description\n"
"Up to 80 characters describing this prefix-list\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 2;
struct prefix_list *plist;
@@ -1944,6 +1945,7 @@ DEFUN (no_ip_prefix_list_description_comment,
"Prefix-list specific description\n"
"Up to 80 characters describing this prefix-list\n")
{
+ /* CHECK ME argc referenced below */
return no_ip_prefix_list_description (self, vty, argc, argv);
}
@@ -2616,6 +2618,7 @@ DEFUN (ipv6_prefix_list_description,
"Prefix-list specific description\n"
"Up to 80 characters describing this prefix-list\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 2;
struct prefix_list *plist;
@@ -2655,6 +2658,7 @@ DEFUN (no_ipv6_prefix_list_description_comment,
"Prefix-list specific description\n"
"Up to 80 characters describing this prefix-list\n")
{
+ /* CHECK ME argc referenced below */
return no_ipv6_prefix_list_description_comment (self, vty, argc, argv);
}
diff --git a/lib/routemap.c b/lib/routemap.c
index 7ad75b415..2b4ec0c67 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -1544,6 +1544,7 @@ DEFUN (rmap_onmatch_goto,
"Goto Clause number\n"
"Number\n")
{
+ /* CHECK ME argc referenced below */
int idx_number = 2;
char *num = NULL;
if (!strcmp (argv[0]->text, "continue"))
@@ -1609,6 +1610,7 @@ DEFUN (rmap_continue,
"Continue on a different entry within the route-map\n"
"Route-map entry sequence number\n")
{
+ /* CHECK ME argc referenced below */
return rmap_onmatch_goto (self, vty, argc, argv);
}
@@ -1620,6 +1622,7 @@ DEFUN (no_rmap_continue,
"Continue on a different entry within the route-map\n"
"Route-map entry sequence number\n")
{
+ /* CHECK ME argc referenced below */
return no_rmap_onmatch_goto (self, vty, argc, argv);
}
@@ -1631,6 +1634,7 @@ DEFUN (rmap_show_name,
"route-map information\n"
"route-map name\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 2;
const char *name = (argc == 3) ? argv[idx_word]->arg : NULL;
return vty_show_route_map (vty, name);
@@ -1694,6 +1698,7 @@ DEFUN (rmap_description,
"Route-map comment\n"
"Comment describing this route-map rule\n")
{
+ /* CHECK ME argc referenced below */
struct route_map_index *index;
index = vty->index;
diff --git a/lib/thread.c b/lib/thread.c
index 76acd0778..eb85d57af 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -299,6 +299,7 @@ DEFUN (show_thread_cpu,
"Thread CPU usage\n"
"Display filter (rwtexb)\n")
{
+ /* CHECK ME argc referenced below */
int idx_filter = 3;
int i = 0;
thread_type filter = (thread_type) -1U;
@@ -382,6 +383,7 @@ DEFUN (clear_thread_cpu,
"Thread CPU usage\n"
"Display filter (rwtexb)\n")
{
+ /* CHECK ME argc referenced below */
int idx_filter = 3;
int i = 0;
thread_type filter = (thread_type) -1U;
diff --git a/lib/vty.c b/lib/vty.c
index e922c672a..7fcf4565a 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2797,6 +2797,7 @@ DEFUN (no_vty_access_class,
"Filter connections based on an IP access list\n"
"IP access list\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 2;
const char *accesslist = (argc == 3) ? argv[idx_word]->arg : NULL;
if (! vty_accesslist_name || (argc && strcmp(vty_accesslist_name, accesslist)))
@@ -2840,6 +2841,7 @@ DEFUN (no_vty_ipv6_access_class,
"Filter connections based on an IP access list\n"
"IPv6 access list\n")
{
+ /* CHECK ME argc referenced below */
int idx_word = 3;
const char *accesslist = (argc == 4) ? argv[idx_word]->arg : NULL;
@@ -2948,6 +2950,7 @@ DEFUN (no_terminal_monitor,
"Set terminal line parameters\n"
"Copy debug output to the current terminal line\n")
{
+ /* CHECK ME argc referenced below */
return terminal_no_monitor (self, vty, argc, argv);
}