summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 21:51:56 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 21:51:56 +0200
commitabddf07563b9f00b6e256abf52b191f7c57655af (patch)
tree7887ac08b49341e8d1ad74c05c07256d0a7846e8 /lib/if.c
parentbgpd and zebra: scrubbed argc CHECK MEs (diff)
downloadfrr-abddf07563b9f00b6e256abf52b191f7c57655af.tar.xz
frr-abddf07563b9f00b6e256abf52b191f7c57655af.zip
all: scrubbed some argc CHECK MEs
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/if.c b/lib/if.c
index 7b55a327c..382e69d61 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -756,10 +756,10 @@ DEFUN (interface,
"Interface's name\n"
VRF_CMD_HELP_STR)
{
- /* CHECK ME argc referenced below */
int idx_ifname = 1;
+ int idx_vrf = 3;
const char *ifname = argv[idx_ifname]->arg;
- const char *vrfname = (argc > 2) ? argv[3]->arg : NULL;
+ const char *vrfname = (argc > 2) ? argv[idx_vrf]->arg : NULL;
struct interface *ifp;
size_t sl;
@@ -901,8 +901,7 @@ DEFUN (show_address,
"address\n"
VRF_CMD_HELP_STR)
{
- /* CHECK ME argc referenced below */
- int idx_vrf_cmd_str = 2;
+ int idx_vrf = 3;
struct listnode *node;
struct listnode *node2;
struct interface *ifp;