diff options
author | dholland <dholland@NetBSD.org> | 2014-03-29 21:24:26 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-29 21:24:26 +0000 |
commit | d6724a84e4ba41305086422afc071d9c8b92c09b (patch) | |
tree | c457518bb9f57b190abf81fec13cb6c911aacdf2 /hunt/hunt/otto.c | |
parent | 32a54d49158271df4ffa0cf4422f612647973022 (diff) | |
download | bsdgames-darwin-d6724a84e4ba41305086422afc071d9c8b92c09b.tar.gz bsdgames-darwin-d6724a84e4ba41305086422afc071d9c8b92c09b.tar.zst bsdgames-darwin-d6724a84e4ba41305086422afc071d9c8b92c09b.zip |
Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.
Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.
Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
Diffstat (limited to 'hunt/hunt/otto.c')
-rw-r--r-- | hunt/hunt/otto.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index 09032346..de5ef41b 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $NetBSD: otto.c,v 1.16 2014/03/29 20:52:13 dholland Exp $ */ +/* $NetBSD: otto.c,v 1.17 2014/03/29 21:24:26 dholland Exp $ */ #ifdef OTTO /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -45,7 +45,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.16 2014/03/29 20:52:13 dholland Exp $"); +__RCSID("$NetBSD: otto.c,v 1.17 2014/03/29 21:24:26 dholland Exp $"); #endif /* not lint */ #include <sys/time.h> @@ -53,8 +53,11 @@ __RCSID("$NetBSD: otto.c,v 1.16 2014/03/29 20:52:13 dholland Exp $"); #include <ctype.h> #include <signal.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> -#include "hunt.h" + +#include "hunt_common.h" +#include "hunt_private.h" #undef WALL #undef NORTH |