summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/answer.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-24/+24
|
* Use bool (not int) for a boolean return type.dholland2014-03-301-3/+3
|
* Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.dholland2014-03-301-17/+17
| | | | Fix two semi-compensating size bugs in wire transmission affecting 64-bit machines.
* Remove all the conditional compilation for INTERNET. Now you can rundholland2014-03-301-19/+34
| | | | | | | this on either a local or internet socket (including via inetd on either) and it will, or is supposed to, DTRT. Does not really support ipv6 yet, but in a number of places will no longer vomit or exhibit UB if it encounters an ipv6 address.
* Clean up the names of the various pieces of socket apparatus.dholland2014-03-301-3/+3
| | | Systematic naming is easier to follow...
* fix non-INTERNET builddholland2014-03-291-2/+4
|
* Reduce ifdefs by making a common function to talk to either syslogd ordholland2014-03-291-7/+3
| | | stderr.
* don't declare own boolean typedholland2014-03-291-9/+9
|
* u_int32_t -> uint32_tdholland2009-08-271-4/+4
|
* sprinkle static and prune some dead codedholland2009-08-121-5/+9
|
* Whitespace.dholland2009-07-041-60/+60
|
* ANSIfy function declarations.dholland2009-07-041-14/+7
|
* Remove a pile of bogus casts. One object file diff, crosschecked anddholland2009-07-041-9/+9
| | | found harmless.
* sprintf -> snprintfdholland2009-06-281-7/+11
|
* Fix possible remote DoS of a running hunt game, and prevent a possibledholland2009-06-281-3/+9
| | | theoretical attack involving >= 1 billion ammo.
* clean for WARNS=4dholland2008-01-281-7/+7
|
* change (mostly) int to socklen_t. GCC 4 doesn't like that int andmrg2006-05-091-3/+3
| | | socklen_t are different signness.
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-3/+3
|
* Merge with v20030416.wiz2003-06-111-5/+30
|
* Make this work on sparc64 (don't use long and assume sizeof(long) = 4).jdc2003-02-261-4/+4
| | | Tested against a LE32 system (arm).
* select() -> poll()mycroft2002-09-201-9/+11
| | | Also, turn off talk announcements; it's a wretched hack.
* Yet Another Monster Commit:lukem1997-10-101-18/+30
| | | | | | | | | | | - 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()
* fix compiler warnings on the alpha.mrg1997-10-041-1/+1
|
* hunt version 1993-07-17mrg1997-10-041-0/+389