summaryrefslogtreecommitdiff
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 18:22:50 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 18:22:50 +0000
commite4123a9bb5fa32f2132837e861c4f34a978f926e (patch)
treec46d8a635846d9febfbe8347c476b26950c20dde /lib/if_rmap.c
parented5c254baf80bca107c083c61b4bbb7118925a15 (diff)
Revert "lib: Fixup more files"
This reverts commit f68cec764abf50b35945b907a2e005bc50c50831.
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c12
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);