summaryrefslogtreecommitdiffstats
path: root/adventure/main.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-5/+5
|
* Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,dholland2009-08-251-24/+24
| | | | | 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.
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* KNF and WARNS=3jmc2005-07-011-13/+11
|
* Remove uses of __P.jsm2004-01-271-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.
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+3
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* This patch cleans up the handling of the variable `saved' inhubertf1999-07-161-3/+3
| | | | | | | | | | | | | | | | | | | | | adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise. This patch separates the uses of `saved' into uses of two separate variables. Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
* The patch below does some minor cleanup of adventure(6): an additionalhubertf1999-02-101-5/+4
| | | | | | | | | | | use of const I missed in bin/6041; avoiding a signed/unsigned warning; marking an unused parameter as such; revoking setgid privileges (including the saved gid) rather than setuid ones; includes and function prototypes in setup.c; the string passed to err() should not end with a `.'. Together with the patch sent concerning adventure's EOF handling, this synchronises adventure(6) in NetBSD with the Linux port of the NetBSD games. Via PR 6557 by Joseph Myers <jsm28@cam.ac.uk>
* return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-141-6/+5
|
* remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-8/+4
|
* add main() prototypehubertf1998-09-111-2/+4
|
* Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.hubertf1998-08-241-16/+16
|
* KNFifylukem1997-10-111-407/+575
|
* deprecate register, fixup .Nm usagelukem1997-10-101-3/+3
|
* PR/3964: Eric Fischer: Remove dependencies to traditional cpp...christos1997-08-111-17/+32
| | | While I was there add WARNS?= too.
* oops, use <signal.h> not <sys/signal.h> (tholo@sigmasoft.com)mrg1996-05-211-3/+3
|
* give up setuid-ness. we don't need it. while i'm here, includemrg1996-05-211-4/+8
| | | <sys/signal.h> and use SIGINT rather than 2.
* Removed "extern int errno"; Added #include <errno.h> if not already present.jtc1996-02-061-3/+2
|
* clean up RCS idscgd1995-03-211-0/+6
|
* adventure(6), from 44litejtc1994-10-211-0/+580