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 /ospfd/ospf_vty.c | |
| parent | 0eef52fd9503ccefb61e27e0e928ebf3d346a66e (diff) | |
| parent | 55f91488121370cbfe9ccb610d91c28192b69923 (diff) | |
Merge pull request #754 from qlyoung/fix-argv-arg
use argv->text where appropriate
Diffstat (limited to 'ospfd/ospf_vty.c')
| -rw-r--r-- | ospfd/ospf_vty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index ceabb1d118..252d59c448 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -374,7 +374,7 @@ DEFUN (ospf_passive_interface, struct ospf_if_params *params; struct route_node *rn; - if (strcmp (argv[1]->text, "default") == 0) + if (strmatch(argv[1]->text, "default")) { ospf_passive_interface_default (ospf, OSPF_IF_PASSIVE); return CMD_SUCCESS; @@ -444,7 +444,7 @@ DEFUN (no_ospf_passive_interface, int ret; struct route_node *rn; - if (strcmp (argv[2]->text, "default") == 0) + if (strmatch(argv[2]->text, "default")) { ospf_passive_interface_default (ospf, OSPF_IF_ACTIVE); return CMD_SUCCESS; @@ -1090,7 +1090,7 @@ DEFUN (ospf_area_vlink, i++; } else if (strncmp (argv[i+1]->arg, "m", 1) == 0 - && strcmp (argv[i+1]->arg, "message-digest-") != 0) + && !strmatch(argv[i + 1]->text, "message-digest-")) { /* "authentication message-digest" */ vl_config.auth_type = OSPF_AUTH_CRYPTOGRAPHIC; |
