diff options
| author | Russ White <russ@riw.us> | 2017-06-29 11:06:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-29 11:06:15 -0400 |
| commit | 0bc44f61c942bc606c66407f4dfeca6e7b724abc (patch) | |
| tree | 8228d692f1ef64c6ceea6cb1dec30e363f162082 /bgpd/rfapi/vnc_debug.c | |
| parent | 0eef52fd9503ccefb61e27e0e928ebf3d346a66e (diff) | |
| parent | 55f91488121370cbfe9ccb610d91c28192b69923 (diff) | |
Merge pull request #754 from qlyoung/fix-argv-arg
use argv->text where appropriate
Diffstat (limited to 'bgpd/rfapi/vnc_debug.c')
| -rw-r--r-- | bgpd/rfapi/vnc_debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/rfapi/vnc_debug.c b/bgpd/rfapi/vnc_debug.c index cc27277a72..27c81d46d6 100644 --- a/bgpd/rfapi/vnc_debug.c +++ b/bgpd/rfapi/vnc_debug.c @@ -69,7 +69,7 @@ DEFUN (debug_bgp_vnc, for (i = 0; i < (sizeof(vncdebug) / sizeof(struct vnc_debug)); ++i) { - if (!strcmp(argv[3]->arg, vncdebug[i].name)) + if (strmatch(argv[3]->text, vncdebug[i].name)) { if (vty->node == CONFIG_NODE) { @@ -104,11 +104,11 @@ DEFUN (no_debug_bgp_vnc, { size_t i; - if (!strcmp(argv[0]->arg, "no")) + if (strmatch(argv[0]->text, "no")) argc--, argv++; for (i = 0; i < (sizeof(vncdebug) / sizeof(struct vnc_debug)); ++i) { - if (!strcmp(argv[3]->arg, vncdebug[i].name)) + if (strmatch(argv[3]->text, vncdebug[i].name)) { if (vty->node == CONFIG_NODE) { |
