| History log of /src/games/hunt/hunt/hunt.c | 
    | Revision |  | Date | Author | Comments | 
| 1.58 |  | 30-Mar-2014 | skrll | Remove unused. 
 | 
| 1.57 |  | 30-Mar-2014 | dholland | curses has printw, use it. 
 | 
| 1.56 |  | 30-Mar-2014 | dholland | don't use the preprocessor to rename curses functions, just call them 
 | 
| 1.55 |  | 30-Mar-2014 | dholland | Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead. Fix two semi-compensating size bugs in wire transmission affecting
 64-bit machines.
 
 | 
| 1.54 |  | 30-Mar-2014 | dholland | Naming reform for socket pieces, akin to what I did in huntd earlier. (but not as comprehensive)
 
 | 
| 1.53 |  | 30-Mar-2014 | dholland | I wish the socket API didn't require casts. Easy to mess them up. 
 | 
| 1.52 |  | 30-Mar-2014 | dholland | fix obvious mistake (seems to have been there since 4.4) 
 | 
| 1.51 |  | 30-Mar-2014 | dholland | Clean up the handling of the list of hunt daemons. 
 | 
| 1.50 |  | 30-Mar-2014 | dholland | use fewer globals 
 | 
| 1.49 |  | 30-Mar-2014 | dholland | unexpose some globals that server.c previously required 
 | 
| 1.48 |  | 30-Mar-2014 | dholland | split off a bunch of the nastier network code into its own file 
 | 
| 1.47 |  | 29-Mar-2014 | dholland | be consistent about whether functions are static 
 | 
| 1.46 |  | 29-Mar-2014 | dholland | handle compiled-in pathnames the customary way 
 | 
| 1.45 |  | 29-Mar-2014 | dholland | make some globals static 
 | 
| 1.44 |  | 29-Mar-2014 | dholland | 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.
 
 | 
| 1.43 |  | 29-Mar-2014 | dholland | Remove unsafe and unnecessary pointer casts. 
 | 
| 1.42 |  | 29-Mar-2014 | dholland | catch up to huntd changes. XXX: this needs to stop promiscuously sharing .h files.
 
 | 
| 1.41 |  | 01-Sep-2011 | plunky | branches:  1.41.2;  1.41.8; reinstate NULL cast by request, where the NULL was being passed as a vararg
 
 | 
| 1.40 |  | 31-Aug-2011 | plunky | NULL does not need a cast 
 | 
| 1.39 |  | 23-May-2011 | joerg | Don't use variables as format string. 
 | 
| 1.38 |  | 05-Jan-2011 | dholland | avoid unnecessary cast (hi wiz) 
 | 
| 1.37 |  | 05-Jan-2011 | wiz | Fix realloc error. Found by cppcheck. 
 | 
| 1.36 |  | 12-Aug-2009 | dholland | sprinkle static and prune some dead code 
 | 
| 1.35 |  | 04-Jul-2009 | dholland | Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly obsolete, and I doubt most of it still worked anyway.
 
 | 
| 1.34 |  | 04-Jul-2009 | dholland | Remove the non-curses screen handling, since it relies on knowing about various internals of SVR4 curses, old BSD curses, and/or other
 unclean things. (Yes, the non-curses handling still used bits of
 curses. Fie.)
 
 | 
| 1.33 |  | 04-Jul-2009 | dholland | Remove config for the return type of signal handlers, which is also a long-dead issue.
 
 | 
| 1.32 |  | 04-Jul-2009 | dholland | Whitespace. 
 | 
| 1.31 |  | 04-Jul-2009 | dholland | ANSIfy function declarations. 
 | 
| 1.30 |  | 04-Jul-2009 | dholland | Remove two more bogus casts. These *do* create object diffs on amd64, for no clear reason, but it looks like the diffs are harmless.
 
 | 
| 1.29 |  | 04-Jul-2009 | dholland | Remove bogus casts. Two object file diffs inspected and found to be harmless. 
 | 
| 1.28 |  | 28-Jun-2009 | dholland | sprintf -> snprintf 
 | 
| 1.27 |  | 08-Aug-2008 | drochner | if initscr() fails, exit with a message rather than crash in the next curses call
 
 | 
| 1.26 |  | 28-Jan-2008 | dholland | branches:  1.26.6; clean for WARNS=4
 
 | 
| 1.25 |  | 15-Dec-2007 | perry | convert __attribute__s to applicable cdefs.h macros 
 | 
| 1.24 |  | 09-May-2006 | mrg | branches:  1.24.10; change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
 socklen_t are different signness.
 
 | 
| 1.23 |  | 05-Nov-2004 | dsl | Add (unsigned char) cast to ctype functions 
 | 
| 1.22 |  | 08-Feb-2004 | jsm | Mark unused parameters, nonreturning functions and format functions in the few cases not already marked.
 
 | 
| 1.21 |  | 27-Jan-2004 | jsm | Remove uses of __P. 
 | 
| 1.20 |  | 11-Jun-2003 | wiz | Make build. 
 | 
| 1.19 |  | 11-Jun-2003 | wiz | Merge with v20030416. 
 | 
| 1.18 |  | 03-May-2003 | christos | don't print error messages using warn, because we clear the screen immediately afterwards and they vanish.
 
 | 
| 1.17 |  | 01-Apr-2003 | drochner | Rewrite broken broadcast interface detection code using getifaddrs(3). "hunt -q" works now.
 
 | 
| 1.16 |  | 06-Dec-2002 | thorpej | Avoid strict alias warning. 
 | 
| 1.15 |  | 20-Sep-2002 | mycroft | Remove an unused declaration. 
 | 
| 1.14 |  | 20-Sep-2002 | mycroft | If we're searching for a huntd, probe local_address along with broadcast addresses.
 
 | 
| 1.13 |  | 20-Sep-2002 | mycroft | select() -> poll() 
 | 
| 1.12 |  | 05-Feb-2001 | christos | eliminate nested externs 
 | 
| 1.11 |  | 14-Apr-2000 | simonb | Don't declare 'extern opt*' getopt variables. 
 | 
| 1.10 |  | 02-Mar-2000 | kleink | Include <sys/param.h> for MAXHOSTNAMELEN. 
 | 
| 1.9 |  | 21-Jan-2000 | mycroft | Nuke `extern int errno;' in code we compile with -Wstrict-prototypes.  We get the correct definition from errno.h.
 
 | 
| 1.8 |  | 13-Sep-1998 | hubertf | branches:  1.8.2; mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 
 | 
| 1.7 |  | 30-Aug-1998 | veego | Add braces to make the new egcs happy. 
 | 
| 1.6 |  | 06-Jul-1998 | mrg | - use an array MAXHOSTNAMELEN+1 size to hold hostnames - ensure hostname from gethostname() is nul-terminated in all cases
 - minor KNF
 - use MAXHOSTNAMELEN over various other values/defines
 - be safe will buffers that hold hostnames
 
 | 
| 1.5 |  | 29-Mar-1998 | mrg | change static to static int 
 | 
| 1.4 |  | 20-Oct-1997 | lukem | FD_ZERO select mask before FD_SET-ing it 
 | 
| 1.3 |  | 11-Oct-1997 | lukem | use err/warn instead of perror 
 | 
| 1.2 |  | 10-Oct-1997 | lukem | Yet Another Monster Commit: - WARNSify
 - getopt returns -1 not EOF
 - select() uses an fd_set, not int/long; modify code to use FD_* et al
 instead of direct bitwise operations
 - in otto.c::look (renamed to ottolook() to prevent name clash), the
 case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
 (picked up by WARNS=1, because cont_west was an unused label because
 of this typo). probably meant that otto got lost in the maze :-/
 - deprecate register, convert bcmp() -> memcmp()
 
 | 
| 1.1 |  | 04-Oct-1997 | mrg | branches:  1.1.1; Initial revision
 
 | 
| 1.1.1.2 |  | 11-Jun-2003 | wiz | Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z, with files moved to proper subdirs.
 Changes since 19930717: BSD licensed, and minimal fixes.
 
 | 
| 1.1.1.1 |  | 04-Oct-1997 | mrg | hunt version 1993-07-17 
 | 
| 1.8.2.1 |  | 23-Jan-2000 | he | Pull up revision 1.9 (requested by mycroft): Always do the errno indirection hack, so that non-threaded
 libraries get the right errno value when linked with -lpthread.
 This means "always include <errno.h> and never declare errno
 yourself".
 
 | 
| 1.24.10.2 |  | 23-Mar-2008 | matt | sync with HEAD 
 | 
| 1.24.10.1 |  | 09-Jan-2008 | matt | sync with HEAD 
 | 
| 1.26.6.1 |  | 18-Sep-2008 | wrstuden | Sync with wrstuden-revivesa-base-2. 
 | 
| 1.41.8.1 |  | 20-Aug-2014 | tls | Rebase to HEAD as of a few days ago. 
 | 
| 1.41.2.1 |  | 22-May-2014 | yamt | sync with head. 
 for a reference, the tree before this commit was tagged
 as yamt-pagecache-tag8.
 
 this commit was splitted into small chunks to avoid
 a limitation of cvs.  ("Protocol error: too many arguments")
 
 |