summaryrefslogtreecommitdiff
path: root/usr.bin/error/input.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
commit937c9a0f84db15a0a64ed0419a42da3a34d96cde (patch)
treeb6b3bfb6f6bbc506426154fc8294316054abb45f /usr.bin/error/input.c
parent4e5dd980fd1238d635621b9bba7d99533aababd6 (diff)
first pass at a -Wall cleanup
Diffstat (limited to 'usr.bin/error/input.c')
-rw-r--r--usr.bin/error/input.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/error/input.c b/usr.bin/error/input.c
index da92c7e2a0a..75aa24cc5b6 100644
--- a/usr.bin/error/input.c
+++ b/usr.bin/error/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.2 1996/06/26 05:32:43 deraadt Exp $ */
+/* $OpenBSD: input.c,v 1.3 2001/07/12 05:17:02 deraadt Exp $ */
/* $NetBSD: input.c,v 1.4 1995/09/10 15:55:13 christos Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: input.c,v 1.2 1996/06/26 05:32:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: input.c,v 1.3 2001/07/12 05:17:02 deraadt Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -71,11 +71,11 @@ Errorclass mod2();
* Eat all of the lines in the input file, attempting to categorize
* them by their various flavors
*/
+void
eaterrors(r_errorc, r_errorv)
int *r_errorc;
Eptr **r_errorv;
{
- extern boolean piflag;
Errorclass errorclass = C_SYNC;
char *line;
char *inbuffer;
@@ -123,6 +123,7 @@ eaterrors(r_errorc, r_errorv)
/*
* create a new error entry, given a zero based array and count
*/
+void
erroradd(errorlength, errorv, errorclass, errorsubclass)
int errorlength;
char **errorv;
@@ -414,6 +415,7 @@ char *F77_fatal[3] = {"Compiler", "error", "line"};
char *F77_error[3] = {"Error", "on", "line"};
char *F77_warning[3] = {"Warning", "on", "line"};
char *F77_no_ass[3] = {"Error.","No","assembly."};
+int
f77()
{
char **nwordv;