diff options
author | christos <christos@NetBSD.org> | 2001-02-05 00:40:45 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2001-02-05 00:40:45 +0000 |
commit | a1380bc8ea2c54611fc861ce62df33f7a225a3e7 (patch) | |
tree | 1c1d74e7fda0e7a9ff8ffb1311c9e6999aab1b08 /hunt/hunt | |
parent | dfc4e173d46d915ee76e5e481a35c6ce6c385633 (diff) | |
download | bsdgames-darwin-a1380bc8ea2c54611fc861ce62df33f7a225a3e7.tar.gz bsdgames-darwin-a1380bc8ea2c54611fc861ce62df33f7a225a3e7.tar.zst bsdgames-darwin-a1380bc8ea2c54611fc861ce62df33f7a225a3e7.zip |
eliminate nested externs
Diffstat (limited to 'hunt/hunt')
-rw-r--r-- | hunt/hunt/hunt.c | 6 | ||||
-rw-r--r-- | 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 <sys/cdefs.h> #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 <sys/param.h> @@ -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 <sys/cdefs.h> #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 <sys/time.h> @@ -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 |