summaryrefslogtreecommitdiff
path: root/usr.bin/yacc/output.c
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2005-06-10 16:40:46 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2005-06-10 16:40:46 +0000
commit5467aef96876d36ffa948f5ae06c61ba5e4ca5aa (patch)
treefb6c79f6f6390fbedc43b7795ff777da6751094a /usr.bin/yacc/output.c
parentcb3d44c0bf47265a14ceea29e107384d285838e1 (diff)
-Wall clean; ok otto deraadt
Diffstat (limited to 'usr.bin/yacc/output.c')
-rw-r--r--usr.bin/yacc/output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/yacc/output.c b/usr.bin/yacc/output.c
index d2af288e72d..e47a51d232e 100644
--- a/usr.bin/yacc/output.c
+++ b/usr.bin/yacc/output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: output.c,v 1.13 2004/08/08 20:13:13 deraadt Exp $ */
+/* $OpenBSD: output.c,v 1.14 2005/06/10 16:40:45 pvalchev Exp $ */
/* $NetBSD: output.c,v 1.4 1996/03/19 03:21:41 jtc Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)output.c 5.7 (Berkeley) 5/24/93";
#else
-static char rcsid[] = "$OpenBSD: output.c,v 1.13 2004/08/08 20:13:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: output.c,v 1.14 2005/06/10 16:40:45 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -891,7 +891,7 @@ is_C_identifier(char *name)
if (!isalpha(c) && c != '_' && c != '$')
return (0);
- while (c = *++s)
+ while ((c = *++s))
{
if (!isalnum(c) && c != '_' && c != '$')
return (0);
@@ -929,7 +929,7 @@ output_defines(void)
putc(c, code_file);
if (dflag) putc(c, defines_file);
}
- while (c = *++s);
+ while ((c = *++s));
}
++outline;
fprintf(code_file, " %d\n", symbol_value[i]);