summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* attribute noreturn -> __deaddholland2009-06-041-4/+4
|
* sprintf -> snprintfdholland2009-06-041-3/+3
|
* Increase spending on vowels. No object file diffs.dholland2009-06-045-69/+69
|
* ANSIfy function declarations.xdholland2009-06-046-106/+53
|
* sprintf -> snprintfdholland2009-06-043-11/+13
|
* Don't use a variable-size array here. There's not really that much point.dholland2009-06-011-2/+2
|
* Rearrange where the alternate definition of __dead goes.dholland2009-05-272-6/+6
| | | | | It can't be before "include.h" as that includes a bunch of system headers, but it can't be after either as it also includes a bunch of local headers. Therefore, it needs to be *in* include.h.
* Edit some.dholland2009-05-261-36/+34
|
* Assorted fixes (mostly grammar, some markup) from OpenBSD.dholland2009-05-261-50/+68
|
* Paranoia about lengths of login names. From pjanzen of OpenBSD.dholland2009-05-261-2/+2
|
* Avoid SIGSEGV on users not in password file. From pjanzen of OpenBSD.dholland2009-05-261-3/+10
|
* sprintf -> snprintfdholland2009-05-263-18/+26
|
* attribute noreturn -> __deaddholland2009-05-251-3/+3
|
* We don't need a private #define "unsgn" for "unsigned", especially sincedholland2009-05-252-5/+4
| | | it was used exactly once.
* Use the time to call srandom(), not getpid().dholland2009-05-251-3/+4
|
* KNF/whitespace: format preprocessor directives correctly.dholland2009-05-2511-147/+147
|
* ANSIfy function declarations. Object file diffs checked.dholland2009-05-2512-88/+64
|
* sprintf -> snprintfdholland2009-05-255-16/+24
|
* ANSIfy function declarations. Object file diffs cross-checked.dholland2009-05-257-128/+79
|
* attribute noreturn -> __deaddholland2009-05-251-2/+2
|
* Clean up scorefile handling.dholland2009-05-252-36/+556
| | | | | | | | | | | | | | | | | | | | | | This was writing time_t to disk. Worse, the time_t member was at an unaligned offset in the structure in question, so after the time_t change the structure layout depended on compiler-inserted structure padding. This gives three legacy formats: one with 32-bit time, one with 64-bit time, and one with 64-bit time and 4 bytes of structure padding. And of course the file didn't have a header or version coding or anything. The new code writes a structure of well-defined size that should not receive unexpected padding, and gives the file a header and version number. It reads that format and any of the three legacy formats, figuring out which one it's dealing with by inspecting the file contents. For good measure, it also now handles opposite-endian files, doesn't bail out unceremoniously unless necessary, and won't croak if the file is corrupt and e.g. contains unterminated strings. (Was it worth going to this length? Maybe not. But it didn't seem right to just leave it, and it's not clear where to stop halfway.)
* ANSIfy function declarations.dholland2009-05-256-58/+34
| | | | | Some object file diffs, but they are harmless. (Mostly they seem to come from internal counters in gcc... and in one case the order of two instructions was harmlessly swapped, which is odd and annoying.)
* Remove description of -a option and optional log file name, sincedholland2009-05-251-8/+10
| | | | | | | neither has done anything in a long long time. Add previously undocumented -s/-f (slow vs. fast) options, although I question the utility thereof and suspect they should just be removed. Bump date (first time since 1993)
* sprintf -> snprintfdholland2009-05-251-2/+2
|
* sprintf -> snprintf.dholland2009-05-252-7/+9
|
* "abbreviation" has two Bs.dholland2009-05-255-20/+20
|
* Use random() instead of rand(), so we get something like randomdholland2009-05-253-20/+10
| | | | | | | | | numbers out. This changes the "tournament codes"; that is, the same code will give you a different game now from what it used to. (This is because the codes are basically random seeds.) I really really doubt anyone cares about this, especially since the tournament feature appears to be undocumented.
* Remove obviously botched test for "fast mode" based on terminal speed.dholland2009-05-251-8/+5
| | | | | Default to "fast mode" as ~nobody has a 300 baud terminal any more. ("Fast mode" apparently controls whether short-range scans are printed by default at certain times.)
* Use getopt to handle the remaining (all currently undocumented) options.dholland2009-05-251-15/+14
|
* Remove last traces of undocumented -p option (apparently related todholland2009-05-251-19/+2
| | | | process priority) and documented -a option, neither of which have done anything since CSRG days.
* Don't give special privileges to uid 13107.dholland2009-05-251-9/+2
|
* __attribute__((__noreturn__)) -> __deaddholland2009-05-251-5/+5
|
* Null for pointers, not 0.dholland2009-05-251-3/+4
|
* Fix score printing so columns line up.dholland2009-05-251-26/+37
|
* Abolish cgetc(). It contained one line of code, which was wrong.dholland2009-05-246-77/+35
| | | | Call getchar() directly, and handle EOF properly instead of looping (in some cases) or pretending that EOF is 0 (which it isn't).
* Remove unnecessary initialization that silenced a compiler warning in 1997.dholland2009-05-241-3/+3
|
* Sprinkle some blank lines for readability.dholland2009-05-241-2/+15
|
* Split up lines > 80 chars. Object files unchanged.dholland2009-05-2427-166/+280
|
* Don't use literal ^G's in string constants. Use \a.dholland2009-05-242-7/+7
|
* KNF: brace and comment placement. Object files identical.dholland2009-05-2443-734/+440
|
* whitespacedholland2009-05-241-6/+7
|
* KNF: fix formatting of preprocessor directivesdholland2009-05-2412-133/+133
|
* ANSIfy function declarations. No object file diffs except for two functionsdholland2009-05-2446-251/+187
| | | | whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
* KNF. No change to .o file.dholland2009-05-241-7/+7
|
* Change getdate() to getdatestr() since the former maybe present on systemsginsbach2009-05-063-8/+8
| | | | supporting X/Open System Interfaces Extension (XSI) getdate() in <time.h>. This prevents a function prototype conflict.
* Remove trailing whitespace.wiz2009-05-041-2/+2
|
* define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160drochner2009-04-201-2/+2
|
* Sort sections.wiz2009-04-121-6/+6
|
* Don't nest displays.joerg2009-04-121-2/+2
|
* Convert to mdoc markup. With input from wiz.joerg2009-04-121-182/+181
|