Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | goto considered harmful | 2014-03-30 | 1 | -95/+111 | ||
| | ||||||
* | split off a bunch of the nastier network code into its own file | 2014-03-30 | 4 | -197/+263 | ||
| | ||||||
* | When indexing an array with a char, cast it to unsigned char, not int, | 2014-03-30 | 1 | -3/+3 | ||
| | | | | to not only silence the compiler warning but also get the correct behavior. | |||||
* | Remove all the conditional compilation for INTERNET. Now you can run | 2014-03-30 | 4 | -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. | 2014-03-30 | 4 | -75/+129 | ||
| | | | Systematic naming is easier to follow... | |||||
* | fix non-INTERNET build | 2014-03-29 | 2 | -6/+8 | ||
| | ||||||
* | Er oops, fix previous. | 2014-03-29 | 1 | -3/+3 | ||
| | ||||||
* | Reduce ifdefs by making a common function to talk to either syslogd or | 2014-03-29 | 5 | -60/+80 | ||
| | | | stderr. | |||||
* | group external functions by where they come from | 2014-03-29 | 1 | -6/+13 | ||
| | ||||||
* | be consistent about whether functions are static | 2014-03-29 | 1 | -5/+5 | ||
| | ||||||
* | handle compiled-in pathnames the customary way | 2014-03-29 | 4 | -13/+56 | ||
| | ||||||
* | make some globals static | 2014-03-29 | 2 | -14/+9 | ||
| | ||||||
* | Additional minor cleanup and remove a straggler data declaration | 2014-03-29 | 4 | -19/+23 | ||
| | | | from hunt_common.h. | |||||
* | Group function declarations by which source file they come from, and | 2014-03-29 | 1 | -28/+36 | ||
| | | | delete several that don't actually exist. | |||||
* | be consistent about whether functions are static | 2014-03-29 | 2 | -7/+7 | ||
| | ||||||
* | sprinkle static | 2014-03-29 | 4 | -32/+21 | ||
| | ||||||
* | Flush unwanted file. | 2014-03-29 | 2 | -42/+2 | ||
| | ||||||
* | Move definitions to the file they're used in. | 2014-03-29 | 2 | -11/+11 | ||
| | ||||||
* | move a comment that should have gone with its symbol | 2014-03-29 | 2 | -9/+9 | ||
| | ||||||
* | Remove tautological #if DEBUG. | 2014-03-29 | 1 | -15/+2 | ||
| | ||||||
* | Split hunt and huntd's includes, instead of incestuously sharing a pile | 2014-03-29 | 10 | -257/+381 | ||
| | | | | | | | | | | | | 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. | |||||
* | Remove unsafe and unnecessary pointer casts. | 2014-03-29 | 1 | -7/+6 | ||
| | ||||||
* | catch up to huntd changes. | 2014-03-29 | 3 | -37/+38 | ||
| | | | XXX: this needs to stop promiscuously sharing .h files. | |||||
* | tsort contents of file | 2014-03-29 | 1 | -49/+43 | ||
| | ||||||
* | const in unused code | 2014-03-29 | 1 | -7/+7 | ||
| | ||||||
* | remove stubbed-out function | 2014-03-29 | 3 | -53/+7 | ||
| | ||||||
* | Rip out the code that broadcasts talk requests to the local | 2014-03-29 | 7 | -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. | 2014-03-29 | 6 | -50/+9 | ||
| | ||||||
* | Use setproctitle() instead of handrolled version. | 2014-03-29 | 2 | -26/+7 | ||
| | ||||||
* | Make the code for issuing talk requests to find players actually build. | 2014-03-29 | 6 | -45/+55 | ||
| | ||||||
* | don't declare own boolean type | 2014-03-29 | 9 | -128/+120 | ||
| | ||||||
* | use random(), not a handrolled 16-bit generator | 2014-03-29 | 1 | -12/+4 | ||
| | ||||||
* | Use getaddrinfo() instead of gethostbyname(). | 2014-03-29 | 1 | -7/+23 | ||
| | ||||||
* | typo in error message | 2014-03-29 | 1 | -3/+3 | ||
| | ||||||
* | const | 2014-03-29 | 1 | -4/+4 | ||
| | ||||||
* | simplify silly logic | 2014-03-29 | 1 | -14/+11 | ||
| | ||||||
* | temp is a pointer, and tempmax, not sizeof(temp), is the length of | 2014-03-28 | 1 | -3/+3 | ||
| | | | the buffer that it points to. Adjust a strlcat() call to suit. | |||||
* | If you are going to use memcpy instead of struct assignment, then at | 2014-03-28 | 1 | -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. | |||||
* | Add note cautioning against bothering with WARNS=6 until gcc improves | 2014-03-23 | 1 | -1/+4 | ||
| | | | | | | | | (or -Wconversion is removed from WARNS=6) as it produces loads of false positives. The most entertaining of these that I've seen this afternoon: games/hack/hack.apply.c:143:22: error: conversion to 'unsigned char:1' from 'int' may alter its value [-Werror=conversion] flags.move = multi = 0; ^ | |||||
* | fix signedness issue | 2014-03-23 | 1 | -4/+4 | ||
| | ||||||
* | gratuitous (but not harmful) changes to pass gcc48's -Wconversion | 2014-03-23 | 1 | -10/+12 | ||
| | ||||||
* | Use ssize_t for read() results. Don't use int for lseek() results. | 2014-03-22 | 1 | -6/+5 | ||
| | | | Call srandom() with time(), not getpid(). | |||||
* | Use ssize_t for read() results. Don't use int for lseek() results. | 2014-03-22 | 1 | -6/+6 | ||
| | ||||||
* | Use uid_t to hold getuid() results, and don't check getuid for failure | 2014-03-22 | 1 | -5/+3 | ||
| | | | as it isn't allowed to fail. | |||||
* | use size_t instead of int for a length | 2014-03-22 | 1 | -3/+3 | ||
| | ||||||
* | Use random(), not rand(). | 2014-03-22 | 2 | -5/+5 | ||
| | ||||||
* | avoid unnecessary floating point ops | 2014-03-22 | 1 | -4/+7 | ||
| | ||||||
* | avoid signed left-shift | 2014-03-22 | 1 | -5/+5 | ||
| | ||||||
* | Use CHAR_BIT, not 8. | 2014-03-22 | 1 | -2/+3 | ||
| | ||||||
* | don't declare ospeed; it's in <termcap.h> | 2014-03-22 | 1 | -3/+2 | ||
| |