From a1380bc8ea2c54611fc861ce62df33f7a225a3e7 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 5 Feb 2001 00:40:45 +0000 Subject: eliminate nested externs --- hunt/hunt/hunt.c | 6 +++--- hunt/hunt/otto.c | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c index 32d391fb..000755c8 100644 --- a/hunt/hunt/hunt.c +++ b/hunt/hunt/hunt.c @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $ */ +/* $NetBSD: hunt.c,v 1.12 2001/02/05 00:40:45 christos Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,7 +7,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.12 2001/02/05 00:40:45 christos Exp $"); #endif /* not lint */ # include @@ -94,6 +94,7 @@ int main __P((int, char *[])); SOCKET *list_drivers __P((void)); # endif +extern int Otto_mode; /* * main: * Main program for local process @@ -105,7 +106,6 @@ main(ac, av) { char *term; int c; - extern int Otto_mode; long enter_status; enter_status = env_init((long) Q_CLOAK); diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index 581efaa3..80314c3e 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $ */ +/* $NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $ */ # ifdef OTTO /* * otto - a hunt otto-matic player @@ -12,7 +12,7 @@ #include #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $"); +__RCSID("$NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $"); #endif /* not lint */ # include @@ -119,6 +119,8 @@ STATIC SIGNAL_TYPE nothing __P((int)); STATIC int stop_look __P((struct item *, char, int, int)); STATIC void wander __P((void)); +extern int Otto_count; + STATIC SIGNAL_TYPE nothing(dummy) int dummy; @@ -131,7 +133,6 @@ otto(y, x, face) char face; { int i; - extern int Otto_count; int old_mask; # ifdef DEBUG -- cgit v1.2.3