From c5671626f49b2dcbf700d4b156a31912aea44b04 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 5 Feb 2001 00:22:52 +0000 Subject: fix redundant decls and nested externs --- atc/extern.h | 4 +++- atc/main.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'atc') 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; -- cgit v1.2.3-56-ge451