summaryrefslogtreecommitdiffstats
path: root/usr.bin/ctags
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-29 00:09:06 +0000
committeralex <alex@FreeBSD.org>1997-12-29 00:09:06 +0000
commit005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38 (patch)
treed6173536ac119a8f4ca284ec466429ed22238d6c /usr.bin/ctags
parent2d2c1486baa4d002f1ec27ce2fdbf344aa08d814 (diff)
downloadFreeBSD-src-005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38.zip
FreeBSD-src-005e82d0d48c18bf9c8f7dd68fbdddaecd02fa38.tar.gz
-Wall cleanup.
Diffstat (limited to 'usr.bin/ctags')
-rw-r--r--usr.bin/ctags/ctags.c2
-rw-r--r--usr.bin/ctags/fortran.c2
-rw-r--r--usr.bin/ctags/yacc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c
index 725dfb5..421d819 100644
--- a/usr.bin/ctags/ctags.c
+++ b/usr.bin/ctags/ctags.c
@@ -229,7 +229,7 @@ find_entries(file)
char *cp;
lineno = 0; /* should be 1 ?? KB */
- if (cp = strrchr(file, '.')) {
+ if ((cp = strrchr(file, '.'))) {
if (cp[1] == 'l' && !cp[2]) {
int c;
diff --git a/usr.bin/ctags/fortran.c b/usr.bin/ctags/fortran.c
index d0db9ed..0706b49 100644
--- a/usr.bin/ctags/fortran.c
+++ b/usr.bin/ctags/fortran.c
@@ -119,7 +119,7 @@ PF_funcs()
continue;
for (cp = lbp + 1; *cp && intoken(*cp); ++cp)
continue;
- if (cp = lbp + 1)
+ if ((cp = lbp + 1))
continue;
*cp = EOS;
(void)strcpy(tok, lbp);
diff --git a/usr.bin/ctags/yacc.c b/usr.bin/ctags/yacc.c
index c013283..1ed4c7d 100644
--- a/usr.bin/ctags/yacc.c
+++ b/usr.bin/ctags/yacc.c
@@ -91,7 +91,7 @@ y_entries()
in_rule = NO;
break;
default:
- if (in_rule || !isalpha(c) && c != '.' && c != '_')
+ if (in_rule || (!isalpha(c) && c != '.' && c != '_'))
break;
sp = tok;
*sp++ = c;
OpenPOWER on IntegriCloud