diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:22:50 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:22:50 +0200 |
commit | e4123a9bb5fa32f2132837e861c4f34a978f926e (patch) | |
tree | c46d8a635846d9febfbe8347c476b26950c20dde /lib/distribute.c | |
parent | Revert "zebra: Fixup to use the new parser" (diff) | |
download | frr-e4123a9bb5fa32f2132837e861c4f34a978f926e.tar.xz frr-e4123a9bb5fa32f2132837e861c4f34a978f926e.zip |
Revert "lib: Fixup more files"
This reverts commit f68cec764abf50b35945b907a2e005bc50c50831.
Diffstat (limited to 'lib/distribute.c')
-rw-r--r-- | lib/distribute.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 9ba88bf7e..d0d637fbb 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -314,9 +314,9 @@ DEFUN (distribute_list_all, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -326,7 +326,7 @@ DEFUN (distribute_list_all, } /* Get interface name corresponding distribute list. */ - distribute_list_set (NULL, type, argv[0]->arg); + distribute_list_set (NULL, type, argv[0]); return CMD_SUCCESS; } @@ -352,9 +352,9 @@ DEFUN (no_distribute_list_all, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -363,7 +363,7 @@ DEFUN (no_distribute_list_all, return CMD_WARNING; } - ret = distribute_list_unset (NULL, type, argv[0]->arg); + ret = distribute_list_unset (NULL, type, argv[0]); if (! ret) { vty_out (vty, "distribute list doesn't exist%s", VTY_NEWLINE); @@ -393,9 +393,9 @@ DEFUN (distribute_list, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -404,7 +404,7 @@ DEFUN (distribute_list, } /* Get interface name corresponding distribute list. */ - distribute_list_set (argv[2]->arg, type, argv[0]->arg); + distribute_list_set (argv[2], type, argv[0]); return CMD_SUCCESS; } @@ -431,9 +431,9 @@ DEFUN (no_distribute_list, no_distribute_list_cmd, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -441,7 +441,7 @@ DEFUN (no_distribute_list, no_distribute_list_cmd, return CMD_WARNING; } - ret = distribute_list_unset (argv[2]->arg, type, argv[0]->arg); + ret = distribute_list_unset (argv[2], type, argv[0]); if (! ret) { vty_out (vty, "distribute list doesn't exist%s", VTY_NEWLINE); @@ -471,9 +471,9 @@ DEFUN (distribute_list_prefix_all, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -483,7 +483,7 @@ DEFUN (distribute_list_prefix_all, } /* Get interface name corresponding distribute list. */ - distribute_list_prefix_set (NULL, type, argv[0]->arg); + distribute_list_prefix_set (NULL, type, argv[0]); return CMD_SUCCESS; } @@ -511,9 +511,9 @@ DEFUN (no_distribute_list_prefix_all, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -522,7 +522,7 @@ DEFUN (no_distribute_list_prefix_all, return CMD_WARNING; } - ret = distribute_list_prefix_unset (NULL, type, argv[0]->arg); + ret = distribute_list_prefix_unset (NULL, type, argv[0]); if (! ret) { vty_out (vty, "distribute list doesn't exist%s", VTY_NEWLINE); @@ -553,9 +553,9 @@ DEFUN (distribute_list_prefix, distribute_list_prefix_cmd, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -565,7 +565,7 @@ DEFUN (distribute_list_prefix, distribute_list_prefix_cmd, } /* Get interface name corresponding distribute list. */ - distribute_list_prefix_set (argv[2]->arg, type, argv[0]->arg); + distribute_list_prefix_set (argv[2], type, argv[0]); return CMD_SUCCESS; } @@ -593,9 +593,9 @@ DEFUN (no_distribute_list_prefix, no_distribute_list_prefix_cmd, enum distribute_type type; /* Check of distribute list type. */ - if (strncmp (argv[1]->arg, "i", 1) == 0) + if (strncmp (argv[1], "i", 1) == 0) type = DISTRIBUTE_IN; - else if (strncmp (argv[1]->arg, "o", 1) == 0) + else if (strncmp (argv[1], "o", 1) == 0) type = DISTRIBUTE_OUT; else { @@ -604,7 +604,7 @@ DEFUN (no_distribute_list_prefix, no_distribute_list_prefix_cmd, return CMD_WARNING; } - ret = distribute_list_prefix_unset (argv[2]->arg, type, argv[0]->arg); + ret = distribute_list_prefix_unset (argv[2], type, argv[0]); if (! ret) { vty_out (vty, "distribute list doesn't exist%s", VTY_NEWLINE); |