summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-06-21 12:33:13 +0000
committerderaadt <deraadt@openbsd.org>1997-06-21 12:33:13 +0000
commit46e2f2e03720959a2cbc541ab5659944c554c49b (patch)
treeab97494cd0a52d6c834cda3ad27f2cbbe92d60b2
parentblock all write ops to init in securelevel modes; nash@mcs.com (diff)
downloadwireguard-openbsd-46e2f2e03720959a2cbc541ab5659944c554c49b.tar.xz
wireguard-openbsd-46e2f2e03720959a2cbc541ab5659944c554c49b.zip
type decl fixes; mikel
-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 4b5eff13f77..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.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 a4d7366e754..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.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);