Commit Graph

22 Commits

Author SHA1 Message Date
gmcgarry 81f725f1e0 Both legs of the conditional operator must return the same type. 2008-08-29 00:37:38 +00:00
dholland 5c10491064 Larn does not need its own private versions of functions from <ctype.h>.
Also, remove the function gettokstr(), which is not used. From larn 12.2.
2008-02-03 20:11:04 +00:00
dholland b6e0b3d3c9 A long time ago, larn had code to prohibit playing it during work hours.
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.
2008-02-03 20:01:24 +00:00
dholland ef066a156b Some assorted minor cleanups, from larn 12.2. 2008-02-03 19:29:50 +00:00
dholland 511d1e002c Since games are (now) setgid, not setuid, it is no longer necessary to
manipulate the effective uid, only the effective gid.
2008-02-03 03:45:55 +00:00
dholland 9cc7e27481 Larn now builds with WARNS=4. 2008-01-28 05:38:53 +00:00
wiz 09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
perry 1a3bb884dc A preprocessor macro named "srand" was defined which seeded the random
number generator.

Unfortunately, it conflicted with a function of the same defined in
stdlib.h. This was masked by the __P hack, which is now being purged.

I've renamed "srand" to "seedrand" to eliminate the conflict.
2005-02-03 02:23:02 +00:00
agc c5275d9ccd Don't redefine NULL 2003-10-21 07:26:39 +00:00
christos a0d324ea8d - rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf
2001-02-05 00:57:32 +00:00
thorpej c356cad88d Fix time_t vs. long botch. 1997-10-25 01:40:47 +00:00
christos a8fba37dbd Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
1997-10-18 20:03:05 +00:00
christos ab8561ee9a gtime -> gltime to avoid conflict in time.h 1997-07-13 20:21:32 +00:00
thorpej 365ece4e6a Make these compile on the PowerPC (an unsigned char system). 1997-03-29 20:42:16 +00:00
mrg be7efc5cc0 oops, we do need privs. do the right seteuid() thing. 1996-05-22 00:36:04 +00:00
cgd c4816c32b3 Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd 174311e268 clean up handling of fortunes a bit. 1995-04-22 07:34:00 +00:00
cgd 42fb1b9d4a merge with Lite, new RCS id conventions, etc. 1995-03-23 08:28:00 +00:00
mycroft 9c6e9d0494 Fix various problems with the potion/scroll name hiding mechanism. 1994-10-21 21:26:08 +00:00
mycroft 210cab4541 Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:18:41 +00:00
mycroft 1812390e23 Don't modify string constants. 1993-04-20 22:00:26 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00