Module Name: src
Committed By: christos
Date: Sat Feb 18 19:17:54 UTC 2012
Modified Files:
src/external/bsd/flex/dist: libmain.c libyywrap.c
Log Message:
fix prototypes
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/flex/dist/libmain.c \
src/external/bsd/flex/dist/libyywrap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/flex/dist/libmain.c
diff -u src/external/bsd/flex/dist/libmain.c:1.1.1.1 src/external/bsd/flex/dist/libmain.c:1.2
--- src/external/bsd/flex/dist/libmain.c:1.1.1.1 Sun Oct 25 20:26:24 2009
+++ src/external/bsd/flex/dist/libmain.c Sat Feb 18 14:17:54 2012
@@ -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;
}
Index: src/external/bsd/flex/dist/libyywrap.c
diff -u src/external/bsd/flex/dist/libyywrap.c:1.1.1.1 src/external/bsd/flex/dist/libyywrap.c:1.2
--- src/external/bsd/flex/dist/libyywrap.c:1.1.1.1 Sun Oct 25 20:26:24 2009
+++ src/external/bsd/flex/dist/libyywrap.c Sat Feb 18 14:17:54 2012
@@ -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;
}