summaryrefslogtreecommitdiff
path: root/src/libmain.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2014-10-31 14:20:02 -0400
committerWill Estes <westes575@gmail.com>2014-11-11 21:09:36 -0500
commit03a7f82cb4e0b273afbd1de04603a26a467e94c9 (patch)
treed54aef088666875a9d94037884b00ce23437ba1b /src/libmain.c
parent2d257614dd66f410375f24ce1f2306b3c260bd29 (diff)
NetBSD downstream patches.
const fixes. -Wconversion fixes for the skeleton files. param namespace protection (add _ to inline function parameters). unused variable/code removal. rename warn to lwarn to avoid conflict with <err.h>. ctype.h function argument correction. merged the error functions lerrif and lerrsf -> lerr.
Diffstat (limited to 'src/libmain.c')
-rw-r--r--src/libmain.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libmain.c b/src/libmain.c
index 49262e4..d4d5b6d 100644
--- a/src/libmain.c
+++ b/src/libmain.c
@@ -21,13 +21,12 @@
/* 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 main (int argc, char *argv[])
{
- while (yylex () != 0) ;
+ while (yylex () != 0)
+ continue;
return 0;
}