Commit Graph

25 Commits

Author SHA1 Message Date
dholland c34afa686b WARNS=5 2012-06-19 05:30:43 +00:00
dholland f2a20f5fe4 sprinkle static 2009-08-12 08:04:05 +00:00
dholland c310e89d2d Once upon a time, larn 12.0 had functions named getchar() and putchar()
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.
2008-02-03 21:24:58 +00:00
dholland d7ba3de791 Make a bunch of functions static. Merged from larn 12.2. 2008-02-03 19:20:40 +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
dholland 8ce4d17196 Add gcc printf format checking, and fix the abundant problems this revealed.
(It appears that someone sometime thought that you use %d to print a long.)
2008-01-28 03:39:30 +00:00
mouse 2609539fc5 Per PR 36185, OKed by martin@ 2007-04-22 02:09:02 +00:00
snj bf5ceaae16 It's "its." 2006-04-24 18:00:53 +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
blymn 494e4c93a6 Converted games to use the new termcap interface. 2000-05-22 12:42:46 +00:00
veego 04afeca685 Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
mycroft a6bb9f4ef1 const poisoning. 1998-07-27 01:12:35 +00:00
mikel f160a96172 fix typo; ryker@openbsd.org 1998-02-12 08:07:49 +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
mrg be7efc5cc0 oops, we do need privs. do the right seteuid() thing. 1996-05-22 00:36:04 +00:00
mrg 69b69dcffc give up "games" if we have it. larn does not need it. 1996-05-21 23:19:20 +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