diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-29 21:51:56 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-29 21:51:56 +0200 |
commit | abddf07563b9f00b6e256abf52b191f7c57655af (patch) | |
tree | 7887ac08b49341e8d1ad74c05c07256d0a7846e8 /lib/if.c | |
parent | bgpd and zebra: scrubbed argc CHECK MEs (diff) | |
download | frr-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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |