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/rfapi.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/rfapi.c')
| -rw-r--r-- | bgpd/rfapi/rfapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/rfapi/rfapi.c b/bgpd/rfapi/rfapi.c index 9e62127600..f66169c7e6 100644 --- a/bgpd/rfapi/rfapi.c +++ b/bgpd/rfapi/rfapi.c @@ -3333,7 +3333,7 @@ DEFUN (debug_rfapi_register_vn_un, } rfapiQprefix2Rprefix (&pfx, &hpfx); - if (!strcmp (argv[10]->arg, "infinite")) + if (strmatch(argv[10]->text, "infinite")) { lifetime = RFAPI_INFINITE_LIFETIME; } @@ -3422,7 +3422,7 @@ DEFUN (debug_rfapi_register_vn_un_l2o, } rfapiQprefix2Rprefix (&pfx, &hpfx); - if (!strcmp (argv[10]->arg, "infinite")) + if (strmatch(argv[10]->text, "infinite")) { lifetime = RFAPI_INFINITE_LIFETIME; } @@ -3931,7 +3931,7 @@ DEFUN (debug_rfapi_response_omit_self, return CMD_WARNING; } - if (!strcmp (argv[3]->arg, "on")) + if (strmatch(argv[3]->text, "on")) SET_FLAG (bgp->rfapi_cfg->flags, BGP_VNC_CONFIG_FILTER_SELF_FROM_RSP); else UNSET_FLAG (bgp->rfapi_cfg->flags, BGP_VNC_CONFIG_FILTER_SELF_FROM_RSP); |
