summaryrefslogtreecommitdiffstats
path: root/hunt/huntd
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-0510-230/+230
|
* Fix darwin-amd64Cameron Katri2021-04-061-0/+1
|
* Use PREFIX nowCameron Katri2021-03-281-3/+3
|
* Get all the games compiling for iOSCameron Katri2021-02-222-8/+13
|
* adjust a fallthru comment and add a missing break.mrg2019-10-131-3/+5
|
* convert HAVE_GCC == 7 to HAVE_GCC >= 7.mrg2019-09-291-2/+2
|
* apply -Wno-error=implicit-fallthrough on files that have fallthrumrg2019-02-041-1/+8
| | | comments but are missed by the current checker.
* Use bool (not int) for a boolean return type.dholland2014-03-302-5/+5
|
* Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.dholland2014-03-302-19/+19
| | | | 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-304-167/+224
| | | | | | | 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-304-75/+129
| | | Systematic naming is easier to follow...
* fix non-INTERNET builddholland2014-03-292-6/+8
|
* Er oops, fix previous.dholland2014-03-291-3/+3
|
* Reduce ifdefs by making a common function to talk to either syslogd ordholland2014-03-295-60/+80
| | | stderr.
* handle compiled-in pathnames the customary waydholland2014-03-291-5/+7
|
* Additional minor cleanup and remove a straggler data declarationdholland2014-03-293-17/+22
| | | from hunt_common.h.
* Group function declarations by which source file they come from, anddholland2014-03-291-28/+36
| | | delete several that don't actually exist.
* be consistent about whether functions are staticdholland2014-03-292-7/+7
|
* sprinkle staticdholland2014-03-294-32/+21
|
* Flush unwanted file.dholland2014-03-292-42/+2
|
* Move definitions to the file they're used in.dholland2014-03-292-11/+11
|
* move a comment that should have gone with its symboldholland2014-03-291-8/+2
|
* Remove tautological #if DEBUG.dholland2014-03-291-15/+2
|
* Split hunt and huntd's includes, instead of incestuously sharing a piledholland2014-03-293-240/+11
| | | | | | | | | | | | 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.
* tsort contents of filedholland2014-03-291-49/+43
|
* const in unused codedholland2014-03-291-7/+7
|
* remove stubbed-out functiondholland2014-03-293-53/+7
|
* Rip out the code that broadcasts talk requests to the localdholland2014-03-297-707/+7
| | | | | | | | | | | | | | | | | | | | | | hunt-players mailing list. In this day and age it doesn't even begin to work: even if you were to have such a mailing list locally, sendmail wouldn't expand it for you, the addresses you got back wouldn't be talk-requestable addresses, talk requests don't cross NAT or firewalls safely, talk doesn't support ipv6, and nobody runs talkd anyway. It doesn't make sense to try to replace it with some other kind of notify scheme either; there might still be a multiuser machine somewhere with enough simultaneous users that broadcasting something akin to talk requests locally might make sense, and where a nontrivial number of the users actually play hunt, but probably not, and if so those users are likely to be better off using wall(1) anyway. Nowadays games will be set up by looking for people in chat or by emailing or texting friends. Theoretically someone could set up an internet hunt metaserver for finding hunt games, but that would be something entirely different anyway and I doubt there's demand.
* Remove empty header file.dholland2014-03-296-50/+9
|
* Use setproctitle() instead of handrolled version.dholland2014-03-292-26/+7
|
* Make the code for issuing talk requests to find players actually build.dholland2014-03-296-45/+55
|
* don't declare own boolean typedholland2014-03-299-128/+120
|
* use random(), not a handrolled 16-bit generatordholland2014-03-291-12/+4
|
* Use getaddrinfo() instead of gethostbyname().dholland2014-03-291-7/+23
|
* typo in error messagedholland2014-03-291-3/+3
|
* constdholland2014-03-291-4/+4
|
* simplify silly logicdholland2014-03-291-14/+11
|
* If you are going to use memcpy instead of struct assignment, then atapb2014-03-281-3/+3
| | | | | least use sizeof(the correct variable). The use of memcmp to test two pointers for equality, one line earlier, is also weird but may be correct.
* fix unused variable warningschristos2013-10-191-7/+3
|
* Fix sendmail section (8 -> 1) in xrefs.njoly2013-07-091-4/+4
|
* NULL does not need a castplunky2011-08-313-14/+13
|
* #if 0 some unused code.joerg2011-05-231-2/+7
|
* u_int32_t -> uint32_tdholland2009-08-272-7/+7
|
* sprinkle static and prune some dead codedholland2009-08-126-46/+39
|
* Remove config options for 4.2BSD and 4.3BSD, and associated code. Highlydholland2009-07-043-19/+4
| | | obsolete, and I doubt most of it still worked anyway.
* Remove the non-curses screen handling, since it relies on knowingdholland2009-07-041-7/+2
| | | | | 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.)
* Remove config for the return type of signal handlers, which is also adholland2009-07-043-15/+15
| | | long-dead issue.
* Remove references to config #defines for the thoroughly obsoletedholland2009-07-042-13/+3
| | | 4.2BSD syslog API.
* more whitespacedholland2009-07-041-3/+3
|
* Whitespace.dholland2009-07-0417-1123/+1134
|