summaryrefslogtreecommitdiffstats
path: root/adventure/io.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-11/+11
|
* Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,dholland2009-08-251-15/+15
| | | | | however, we have an ample vowel budget, and bit shortages are a thing of the past (even in a down economy) so spend a bit to improve readability.
* sprinkle staticdholland2009-08-121-18/+27
|
* don't try to switch a char and have a case of EOF - use an int.mrg2006-05-181-5/+6
|
* Coverity CID 2737: Handle linked-lists properly. Use calloc instead of mallocchristos2006-03-211-7/+8
| | | | | so that we don't end up storing garbage accidentally and the next pointer is initialized. If there is an inconsistency in the file abort instead of dereferencing NULL.
* Coverity CID 1195: Check for possible negative index.christos2006-03-181-3/+6
|
* Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.christos2006-03-181-7/+7
|
* KNF and WARNS=3jmc2005-07-011-70/+76
|
* off-by-one. aaron@openbsditojun2003-09-191-3/+3
|
* off-by-one. aaron@openbsditojun2003-09-191-3/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Use err(1, NULL) and warn(NULL) for `out of memory' error messages.jsm2000-01-091-5/+5
|
* The game adventure(6) handles EOF on standard input ratherhubertf1999-02-101-10/+19
| | | | | | ungracefully. The patch, derived from OpenBSD, improves this handling. Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
* return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-141-12/+7
|
* check for malloc failures (PR#6136 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-5/+11
|
* constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>hubertf1998-09-131-5/+5
|
* Remove unused function and unnecessary prototypes, as per PR 6050 byhubertf1998-08-291-16/+2
| | | Joseph Myers <jsm28@cam.ac.uk>
* KNFifylukem1997-10-111-303/+361
|
* deprecate register, fixup .Nm usagelukem1997-10-101-22/+22
|
* PR/3964: Eric Fischer: Remove dependencies to traditional cpp...christos1997-08-111-15/+34
| | | While I was there add WARNS?= too.
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-2/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up RCS idscgd1995-03-211-0/+6
|
* adventure(6), from 44litejtc1994-10-211-0/+514