diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-21 04:26:30 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-21 04:26:30 +0200 |
commit | f68cec764abf50b35945b907a2e005bc50c50831 (patch) | |
tree | 4178020d116edef1a91f9a52214f9193f8a1a071 /lib/if_rmap.c | |
parent | Merge branch 'vtysh-grammar' of ssh://stash.cumulusnetworks.com:7999/quag/qua... (diff) | |
download | frr-f68cec764abf50b35945b907a2e005bc50c50831.tar.xz frr-f68cec764abf50b35945b907a2e005bc50c50831.zip |
lib: Fixup more files
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 736f2e237..655da8c3d 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], "i", 1) == 0) + if (strncmp (argv[1]->arg, "i", 1) == 0) type = IF_RMAP_IN; - else if (strncmp (argv[1], "o", 1) == 0) + else if (strncmp (argv[1]->arg, "o", 1) == 0) type = IF_RMAP_OUT; else { @@ -230,7 +230,7 @@ DEFUN (if_rmap, return CMD_WARNING; } - if_rmap_set (argv[2], type, argv[0]); + if_rmap_set (argv[2]->arg, type, argv[0]->arg); return CMD_SUCCESS; } @@ -257,9 +257,9 @@ DEFUN (no_if_rmap, int ret; enum if_rmap_type type; - if (strncmp (argv[1], "i", 1) == 0) + if (strncmp (argv[1]->arg, "i", 1) == 0) type = IF_RMAP_IN; - else if (strncmp (argv[1], "o", 1) == 0) + else if (strncmp (argv[1]->arg, "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], type, argv[0]); + ret = if_rmap_unset (argv[2]->arg, type, argv[0]->arg); if (! ret) { vty_out (vty, "route-map doesn't exist%s", VTY_NEWLINE); |