]> git.puffer.fish Git - mirror/frr.git/commit
*: use ->text and strmatch where appropriate
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 26 Jun 2017 18:15:19 +0000 (18:15 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 27 Jun 2017 17:46:42 +0000 (17:46 +0000)
commit7e045c3d4285e01a8f8b13dc7ef5034f5eafcce1
tree8a52ba1c407c44416e7b13bf7699b9411176d8cb
parent5ce1d8b118ae85765d135aaf06bf04a554607d12
*: use ->text and strmatch where appropriate

Still need to go fix all the places where we do a 1-char strncmp...

spatch follows
------------------

@asdf@
expression idx;
@@
<...
 strcmp (
- argv[idx]->arg,
+ argv[idx]->text,
  ...)
...>

@depends on asdf@
expression idx;
@@
<...
- !strcmp (argv[idx]->text,
+ strmatch (argv[idx]->text,
           ...)
...>

@depends on asdf@
expression idx;
expression arg;
@@
<...
- strcmp (argv[idx]->text, arg) == 0
+ strmatch (argv[idx]->text, arg)
...>

@depends on asdf@
expression idx;
expression arg;
@@
<...
- strcmp (argv[idx]->text, arg) != 0
+ !strmatch (argv[idx]->text, arg)
...>

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
14 files changed:
bgpd/bgp_bfd.c
bgpd/bgp_dump.c
bgpd/bgp_route.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi.c
bgpd/rfapi/rfapi_vty.c
bgpd/rfapi/vnc_debug.c
isisd/isis_spf.c
lib/command.c
nhrpd/nhrp_vty.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_route.c
ospfd/ospf_vty.c
zebra/zebra_vty.c