diff options
author | 2014-03-29 21:24:26 +0000 | |
---|---|---|
committer | 2014-03-29 21:24:26 +0000 | |
commit | d6724a84e4ba41305086422afc071d9c8b92c09b (patch) | |
tree | c457518bb9f57b190abf81fec13cb6c911aacdf2 /hunt/hunt/connect.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/connect.c')
-rw-r--r-- | hunt/hunt/connect.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hunt/hunt/connect.c b/hunt/hunt/connect.c index 8f86bcd8..f1d35334 100644 --- a/hunt/hunt/connect.c +++ b/hunt/hunt/connect.c @@ -1,4 +1,4 @@ -/* $NetBSD: connect.c,v 1.8 2009/07/04 05:01:16 dholland Exp $ */ +/* $NetBSD: connect.c,v 1.9 2014/03/29 21:24:26 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,13 +32,16 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: connect.c,v 1.8 2009/07/04 05:01:16 dholland Exp $"); +__RCSID("$NetBSD: connect.c,v 1.9 2014/03/29 21:24:26 dholland Exp $"); #endif /* not lint */ -#include "hunt.h" +#include <string.h> #include <signal.h> #include <unistd.h> +#include "hunt_common.h" +#include "hunt_private.h" + void do_connect(char *name, char team, long enter_status) { |