Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename ->last_card to ->top_card to match OpenBSD (and also to make | dholland | 2008-02-23 | 2 | -7/+7 | |
| | | | somewhat more sense...) | |||||
* | Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD. | dholland | 2008-02-23 | 2 | -19/+19 | |
| | ||||||
* | A few more whitespace/KNF. I keep hoping I've found them all... | dholland | 2008-02-20 | 4 | -17/+14 | |
| | ||||||
* | Add the sizes to the extern array declarations. This may not be | dholland | 2008-02-20 | 1 | -6/+6 | |
| | | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD. | |||||
* | Use random() rather than rand(). Suggested by diffing against OpenBSD. | dholland | 2008-02-20 | 2 | -6/+7 | |
| | ||||||
* | Remove unused swap() macro. | dholland | 2008-02-20 | 1 | -6/+1 | |
| | ||||||
* | Don't misuse random strings as printf formats, even where it's harmless. | dholland | 2008-02-20 | 1 | -3/+3 | |
| | | | Found by diffing against OpenBSD. | |||||
* | One more (hopefully the last) whitespace fix. | dholland | 2008-02-19 | 1 | -3/+3 | |
| | ||||||
* | getinp() no longer magically treats the prompt arg as a printf format, so | dholland | 2008-02-19 | 1 | -3/+3 | |
| | | | don't escape % as %%. From OpenBSD. | |||||
* | Move function heading comments to something vaguely like the right place. | dholland | 2008-02-19 | 1 | -7/+22 | |
| | ||||||
* | KNF/whitespace nits. No functional changes. | dholland | 2008-02-19 | 9 | -49/+53 | |
| | ||||||
* | Fix bugs in debug printouts. From OpenBSD. | dholland | 2008-02-19 | 1 | -8/+9 | |
| | ||||||
* | Don't use sprintf; use snprintf. | dholland | 2008-02-19 | 2 | -8/+10 | |
| | ||||||
* | Don't use perror(); use err/warn instead. | dholland | 2008-02-19 | 2 | -12/+9 | |
| | | | Suggested by diffing against OpenBSD. | |||||
* | Fix capitalization of street names. from pjanzen@openbsd | dholland | 2008-02-19 | 1 | -21/+21 | |
| | ||||||
* | More typo fixes | dholland | 2008-02-19 | 2 | -4/+4 | |
| | ||||||
* | Fix formatting bug apparently introduced when the page was mdoc'd. (Had | dholland | 2008-02-19 | 1 | -3/+3 | |
| | | | | | | .Nm, should have been .Pp.) Also bump date; for some reason this hadn't been done since the original import. | |||||
* | Remove transient thingy that wasn't supposed to see the light of day, and | dholland | 2008-02-19 | 1 | -15/+14 | |
| | | | finish dealing with some local variables that shadow a global. (hi dholland) | |||||
* | Fix (another) typo in comment | dholland | 2008-02-19 | 1 | -3/+3 | |
| | ||||||
* | Fix typo in comment | dholland | 2008-02-19 | 1 | -3/+3 | |
| | ||||||
* | Split some code from moreobj.c into action.c, as per larn 12.2. | dholland | 2008-02-19 | 4 | -185/+332 | |
| | ||||||
* | Typo correction: s/than/that/ in one instance. | he | 2008-02-15 | 1 | -1/+1 | |
| | ||||||
* | More assorted cleanup merged from larn 12.2. | dholland | 2008-02-04 | 5 | -175/+78 | |
| | ||||||
* | Once upon a time, larn 12.0 had functions named getchar() and putchar() | dholland | 2008-02-03 | 9 | -89/+89 | |
| | | | | | | | that conflicted with libc. We changed them to lgetchar() and xputchar() respectively; larn 12.2 changed them to ttgetch() and ttputch(). After reflecting on this for a while I've decided to adopt the larn 12.2 names; not so much for compatibility but for consistency going forward. So, massrename them. Also make ttputch() static. | |||||
* | Don't create files mode 666 in /var. (The code in question is not enabled | dholland | 2008-02-03 | 1 | -3/+3 | |
| | | | by default, though.) | |||||
* | Larn does not need its own private versions of functions from <ctype.h>. | dholland | 2008-02-03 | 7 | -96/+17 | |
| | | | Also, remove the function gettokstr(), which is not used. From larn 12.2. | |||||
* | A long time ago, larn had code to prohibit playing it during work hours. | dholland | 2008-02-03 | 3 | -89/+8 | |
| | | | | | | | | | Most of this code was removed ages ago, probably when dm(6) was invented; long before -r1.1 in the NetBSD tree in any event. Now remove the last fragment of it. Also nuke the file of US holidays 1987-1993 that we've been carrying around for no reason. | |||||
* | Some assorted minor cleanups, from larn 12.2. | dholland | 2008-02-03 | 4 | -26/+31 | |
| | ||||||
* | Make a bunch of functions static. Merged from larn 12.2. | dholland | 2008-02-03 | 8 | -68/+80 | |
| | ||||||
* | Use mkstemp to make the temporary files used when you win. | dholland | 2008-02-03 | 1 | -5/+5 | |
| | ||||||
* | Since games are (now) setgid, not setuid, it is no longer necessary to | dholland | 2008-02-03 | 3 | -30/+30 | |
| | | | manipulate the effective uid, only the effective gid. | |||||
* | Document -d. | wiz | 2008-02-03 | 1 | -2/+8 | |
| | ||||||
* | Add a -d flag so that primes will print the difference between the current | matt | 2008-02-02 | 1 | -14/+31 | |
| | | | | | prime and the previous prime. [I needed that for some reason I don't recall and these changes lying about. Since they might be useful/interesting to someone, I might as well as commit them.] | |||||
* | Fix typo: sive -> sieve. | matt | 2008-02-02 | 1 | -3/+3 | |
| | ||||||
* | Pedanticism about time_t (not really a bug, but now it won't show up when | dholland | 2008-01-31 | 1 | -3/+3 | |
| | | | audited.) | |||||
* | Fix y2038 bug: time_t != int. | dholland | 2008-01-31 | 3 | -10/+13 | |
| | ||||||
* | Make the default WARNS for games 4. The only game that needs to set WARNS | dholland | 2008-01-28 | 12 | -30/+13 | |
| | | | to anything else now is rogue, so clear WARNS from the other makefiles. | |||||
* | build with WARNS=4 | dholland | 2008-01-28 | 1 | -6/+6 | |
| | ||||||
* | Make hack build with WARNS=4. | dholland | 2008-01-28 | 18 | -94/+102 | |
| | ||||||
* | Make this build with WARNS=4 by not reusing names from <math.h>. | dholland | 2008-01-28 | 1 | -5/+5 | |
| | ||||||
* | Make this build with WARNS=4 by not reusing names from ctype.h. | dholland | 2008-01-28 | 1 | -9/+9 | |
| | ||||||
* | Make this build with WARNS=4. | dholland | 2008-01-28 | 9 | -70/+78 | |
| | ||||||
* | make mille build with WARNS=4 | dholland | 2008-01-28 | 1 | -6/+6 | |
| | ||||||
* | Call srandom() as well as initializing the private random generator | dholland | 2008-01-28 | 1 | -2/+3 | |
| | | | | (which is crappy and should be removed, but that's for another day...) This way e.g. fortune cookies no longer appear always in the same order. | |||||
* | Larn now builds with WARNS=4. | dholland | 2008-01-28 | 21 | -306/+296 | |
| | ||||||
* | Apparently the reason the printf arguments were all wrong is that larn | dholland | 2008-01-28 | 1 | -121/+11 | |
| | | | | had its own private and not-quite-standard implementation of printf. Remove it surgically with a chainsaw. | |||||
* | Add gcc printf format checking, and fix the abundant problems this revealed. | dholland | 2008-01-28 | 9 | -73/+76 | |
| | | | (It appears that someone sometime thought that you use %d to print a long.) | |||||
* | clean for WARNS=4 | dholland | 2008-01-28 | 9 | -64/+61 | |
| | ||||||
* | Work around gcc signedness warning: if you check for uid_t < 0, gcc warns | dholland | 2008-01-28 | 1 | -6/+9 | |
| | | | | because it's unsigned, but I don't really want to rely on uid_t being unsigned on every platform this code might propagate to. | |||||
* | Build with WARNS=4. Sort out the game's shadowing of its own variables, | dholland | 2008-01-28 | 7 | -66/+68 | |
| | | | which fixes at least one bug. |