summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A few more whitespace/KNF. I keep hoping I've found them all...dholland2008-02-204-17/+14
|
* Add the sizes to the extern array declarations. This may not bedholland2008-02-201-6/+6
| | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD.
* Use random() rather than rand(). Suggested by diffing against OpenBSD.dholland2008-02-202-6/+7
|
* Remove unused swap() macro.dholland2008-02-201-6/+1
|
* Don't misuse random strings as printf formats, even where it's harmless.dholland2008-02-201-3/+3
| | | Found by diffing against OpenBSD.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* getinp() no longer magically treats the prompt arg as a printf format, sodholland2008-02-191-3/+3
| | | don't escape % as %%. From OpenBSD.
* Move function heading comments to something vaguely like the right place.dholland2008-02-191-7/+22
|
* KNF/whitespace nits. No functional changes.dholland2008-02-199-49/+53
|
* Fix bugs in debug printouts. From OpenBSD.dholland2008-02-191-8/+9
|
* Don't use sprintf; use snprintf.dholland2008-02-192-8/+10
|
* Don't use perror(); use err/warn instead.dholland2008-02-192-12/+9
| | | Suggested by diffing against OpenBSD.
* Fix capitalization of street names. from pjanzen@openbsddholland2008-02-191-21/+21
|
* More typo fixesdholland2008-02-192-4/+4
|
* Fix formatting bug apparently introduced when the page was mdoc'd. (Haddholland2008-02-191-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, anddholland2008-02-191-15/+14
| | | finish dealing with some local variables that shadow a global. (hi dholland)
* Fix (another) typo in commentdholland2008-02-191-3/+3
|
* Fix typo in commentdholland2008-02-191-3/+3
|
* Split some code from moreobj.c into action.c, as per larn 12.2.dholland2008-02-194-185/+332
|
* Typo correction: s/than/that/ in one instance.he2008-02-151-1/+1
|
* More assorted cleanup merged from larn 12.2.dholland2008-02-045-175/+78
|
* Once upon a time, larn 12.0 had functions named getchar() and putchar()dholland2008-02-039-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 enableddholland2008-02-031-3/+3
| | | by default, though.)
* Larn does not need its own private versions of functions from <ctype.h>.dholland2008-02-037-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.dholland2008-02-033-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.dholland2008-02-034-26/+31
|
* Make a bunch of functions static. Merged from larn 12.2.dholland2008-02-038-68/+80
|
* Use mkstemp to make the temporary files used when you win.dholland2008-02-031-5/+5
|
* Since games are (now) setgid, not setuid, it is no longer necessary todholland2008-02-033-30/+30
| | | manipulate the effective uid, only the effective gid.
* Document -d.wiz2008-02-031-2/+8
|
* Add a -d flag so that primes will print the difference between the currentmatt2008-02-021-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.matt2008-02-021-3/+3
|
* Pedanticism about time_t (not really a bug, but now it won't show up whendholland2008-01-311-3/+3
| | | audited.)
* Fix y2038 bug: time_t != int.dholland2008-01-313-10/+13
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-2812-30/+13
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* build with WARNS=4dholland2008-01-281-6/+6
|
* Make hack build with WARNS=4.dholland2008-01-2818-94/+102
|
* Make this build with WARNS=4 by not reusing names from <math.h>.dholland2008-01-281-5/+5
|
* Make this build with WARNS=4 by not reusing names from ctype.h.dholland2008-01-281-9/+9
|
* Make this build with WARNS=4.dholland2008-01-289-70/+78
|
* make mille build with WARNS=4dholland2008-01-281-6/+6
|
* Call srandom() as well as initializing the private random generatordholland2008-01-281-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.dholland2008-01-2821-306/+296
|
* Apparently the reason the printf arguments were all wrong is that larndholland2008-01-281-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.dholland2008-01-289-73/+76
| | | (It appears that someone sometime thought that you use %d to print a long.)
* clean for WARNS=4dholland2008-01-289-64/+61
|
* Work around gcc signedness warning: if you check for uid_t < 0, gcc warnsdholland2008-01-281-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,dholland2008-01-287-66/+68
| | | which fixes at least one bug.
* Build with WARNS=4. (All fixes are cosmetic, except that it's definitelydholland2008-01-282-28/+29
| | | | bad karma to shadow a local variable with another of the same name in a nested block...)
* Build with WARNS=4.dholland2008-01-282-7/+8
|