diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-29 19:51:56 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-29 19:51:56 +0000 |
| commit | abddf07563b9f00b6e256abf52b191f7c57655af (patch) | |
| tree | 7887ac08b49341e8d1ad74c05c07256d0a7846e8 /lib/routemap.c | |
| parent | 00d7d2d345bb027733e6a3172b6d8b87a9329b88 (diff) | |
all: scrubbed some argc CHECK MEs
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index 2b4ec0c67a..b3d349d2f8 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -1544,13 +1544,9 @@ 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")) - num = argv[1]->arg; - else - num = argv[idx_number]->arg; + num = argv[idx_number]->arg; struct route_map_index *index = vty->index; int d = 0; @@ -1565,7 +1561,7 @@ DEFUN (rmap_onmatch_goto, return CMD_WARNING; } - if (argc == 1 && num) + if (num) VTY_GET_INTEGER_RANGE("route-map index", d, num, 1, 65535); else d = index->pref + 1; @@ -1634,10 +1630,9 @@ 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); + const char *name = (argc == 3) ? argv[idx_word]->arg : NULL; + return vty_show_route_map (vty, name); } DEFUN (rmap_call, |
