diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-26 18:15:19 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-27 17:46:42 +0000 | 
| commit | 7e045c3d4285e01a8f8b13dc7ef5034f5eafcce1 (patch) | |
| tree | 8a52ba1c407c44416e7b13bf7699b9411176d8cb /isisd | |
| parent | 5ce1d8b118ae85765d135aaf06bf04a554607d12 (diff) | |
*: 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>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_spf.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c index ca268cec7e..9a1ed32003 100644 --- a/isisd/isis_spf.c +++ b/isisd/isis_spf.c @@ -1386,7 +1386,7 @@ DEFUN (show_isis_topology,    if (argc < 4)      levels = ISIS_LEVEL1|ISIS_LEVEL2; -  else if (!strcmp(argv[3]->arg, "level-1")) +  else if (strmatch(argv[3]->text, "level-1"))      levels = ISIS_LEVEL1;    else      levels = ISIS_LEVEL2;  | 
