Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/flex/dist fix prototypes
details: https://anonhg.NetBSD.org/src/rev/21f89c55e161
branches: trunk
changeset: 777439:21f89c55e161
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 18 19:17:54 2012 +0000
description:
fix prototypes
diffstat:
external/bsd/flex/dist/libmain.c | 14 +++++++-------
external/bsd/flex/dist/libyywrap.c | 6 ++++--
2 files changed, 11 insertions(+), 9 deletions(-)
diffs (49 lines):
diff -r b66441094654 -r 21f89c55e161 external/bsd/flex/dist/libmain.c
--- a/external/bsd/flex/dist/libmain.c Sat Feb 18 17:56:49 2012 +0000
+++ b/external/bsd/flex/dist/libmain.c Sat Feb 18 19:17:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libmain.c,v 1.1.1.1 2009/10/26 00:26:24 christos Exp $ */
+/* $NetBSD: libmain.c,v 1.2 2012/02/18 19:17:54 christos Exp $ */
/* libmain - flex run-time support library "main" function */
@@ -23,13 +23,13 @@
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/* PURPOSE. */
-extern int yylex ();
+extern int yylex(void);
-int main (argc, argv)
- int argc;
- char *argv[];
+int
+/*ARGSUSED*/
+main(int argc, char *argv[])
{
- while (yylex () != 0) ;
-
+ while (yylex() != 0)
+ continue;
return 0;
}
diff -r b66441094654 -r 21f89c55e161 external/bsd/flex/dist/libyywrap.c
--- a/external/bsd/flex/dist/libyywrap.c Sat Feb 18 17:56:49 2012 +0000
+++ b/external/bsd/flex/dist/libyywrap.c Sat Feb 18 19:17:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libyywrap.c,v 1.1.1.1 2009/10/26 00:26:24 christos Exp $ */
+/* $NetBSD: libyywrap.c,v 1.2 2012/02/18 19:17:54 christos Exp $ */
/* libyywrap - flex run-time support library "yywrap" function */
@@ -23,7 +23,9 @@
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/* PURPOSE. */
-int yywrap (void)
+int yywrap(void);
+int
+yywrap(void)
{
return 1;
}
Home |
Main Index |
Thread Index |
Old Index