summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2001-02-05 00:22:52 +0000
committerchristos <christos@NetBSD.org>2001-02-05 00:22:52 +0000
commitc5671626f49b2dcbf700d4b156a31912aea44b04 (patch)
treeb432c873119893c59d66535c6e6356bf1fc98b69 /atc
parent5291c642e33577c5d349d5104aa04bec925c15bc (diff)
downloadbsdgames-darwin-c5671626f49b2dcbf700d4b156a31912aea44b04.tar.gz
bsdgames-darwin-c5671626f49b2dcbf700d4b156a31912aea44b04.tar.zst
bsdgames-darwin-c5671626f49b2dcbf700d4b156a31912aea44b04.zip
fix redundant decls and nested externs
Diffstat (limited to 'atc')
-rw-r--r--atc/extern.h4
-rw-r--r--atc/main.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/atc/extern.h b/atc/extern.h
index 7931c3ec..5cf47224 100644
--- a/atc/extern.h
+++ b/atc/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.8 1999/07/17 19:57:03 hubertf Exp $ */
+/* $NetBSD: extern.h,v 1.9 2001/02/05 00:22:52 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -110,7 +110,9 @@ int too_close __P((const PLANE *p1, const PLANE *p2, int));
void update __P((int));
int yyerror __P((const char *));
int yylex __P((void));
+#ifndef YYEMPTY
int yyparse __P((void));
+#endif
const char *Left __P((char));
const char *Right __P((char));
const char *airport __P((char));
diff --git a/atc/main.c b/atc/main.c
index da545c69..73508872 100644
--- a/atc/main.c
+++ b/atc/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.11 2000/05/08 07:56:01 mycroft Exp $ */
+/* $NetBSD: main.c,v 1.12 2001/02/05 00:22:52 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -55,13 +55,14 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.11 2000/05/08 07:56:01 mycroft Exp $");
+__RCSID("$NetBSD: main.c,v 1.12 2001/02/05 00:22:52 christos Exp $");
#endif
#endif /* not lint */
#include "include.h"
#include "pathnames.h"
+extern FILE *yyin;
int
main(ac, av)
@@ -214,7 +215,6 @@ int
read_file(s)
const char *s;
{
- extern FILE *yyin;
int retval;
file = s;