diff options
Diffstat (limited to 'lib/if_rmap.c')
| -rw-r--r-- | lib/if_rmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c index 655da8c3d3..736f2e237d 100644 --- a/lib/if_rmap.c +++ b/lib/if_rmap.c @@ -220,9 +220,9 @@ DEFUN (if_rmap, { enum if_rmap_type type; - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = IF_RMAP_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = IF_RMAP_OUT; else { @@ -230,7 +230,7 @@ DEFUN (if_rmap, return CMD_WARNING; } - if_rmap_set (argv[2]->arg, type, argv[0]->arg); + if_rmap_set (argv[2], type, argv[0]); return CMD_SUCCESS; } @@ -257,9 +257,9 @@ DEFUN (no_if_rmap, int ret; enum if_rmap_type type; - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = IF_RMAP_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = IF_RMAP_OUT; else { @@ -267,7 +267,7 @@ DEFUN (no_if_rmap, return CMD_WARNING; } - ret = if_rmap_unset (argv[2]->arg, type, argv[0]->arg); + ret = if_rmap_unset (argv[2], type, argv[0]); if (! ret) { vty_out (vty, "route-map doesn't exist%s", VTY_NEWLINE); |
