summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/liby/main.c7
-rw-r--r--lib/liby/yyerror.c5
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/liby/main.c b/lib/liby/main.c
index 154b7be5f2d..338f323a841 100644
--- a/lib/liby/main.c
+++ b/lib/liby/main.c
@@ -33,9 +33,14 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.3 (Berkeley) 1/13/91";*/
-static char rcsid[] = "$Id: main.c,v 1.1 1995/10/18 08:43:14 deraadt Exp $";
+static char rcsid[] = "$Id: main.c,v 1.2 1997/06/21 12:33:13 deraadt Exp $";
#endif /* not lint */
+#include <stdlib.h>
+
+extern int yyparse();
+
+int
main()
{
exit(yyparse());
diff --git a/lib/liby/yyerror.c b/lib/liby/yyerror.c
index 34fe9040030..f32deb9c655 100644
--- a/lib/liby/yyerror.c
+++ b/lib/liby/yyerror.c
@@ -33,13 +33,14 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)yyerror.c 5.2 (Berkeley) 5/15/90";*/
-static char rcsid[] = "$Id: yyerror.c,v 1.1 1995/10/18 08:43:14 deraadt Exp $";
+static char rcsid[] = "$Id: yyerror.c,v 1.2 1997/06/21 12:33:15 deraadt Exp $";
#endif /* not lint */
#include <stdio.h>
+int
yyerror(msg)
-char *msg;
+ char *msg;
{
(void)fprintf(stderr, "%s\n", msg);
return(0);