History log of /netbsd/games/adventure/main.c (Results 1 – 22 of 22)
Revision Date Author Comments
# abca1099 02-May-2021 rillig <rillig@NetBSD.org>

games: remove trailing whitespace in *.c and *.h


# aa19a9d0 25-Aug-2009 dholland <dholland@NetBSD.org>

Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,
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 imp

Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,
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.

show more ...


# 2fe2731d 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.


# 243d04ef 01-Jul-2005 jmc <jmc@NetBSD.org>

KNF and WARNS=3


# cb5fd834 27-Jan-2004 jsm <jsm@NetBSD.org>

Remove uses of __P.


# e5aeb4ea 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.


# 32330650 03-Jul-2000 matt <matt@NetBSD.org>

More include additions for exit, abs, strcmp, etc.


# f9eca697 08-May-2000 mycroft <mycroft@NetBSD.org>

Use setgid(), not setregid().


# adf74b1e 16-Jul-1999 hubertf <hubertf@NetBSD.org>

This patch cleans up the handling of the variable `saved' in
adventure(6). The handling of this variable is somewhat confusing,
since it is used for two different purposes (controlling the time
requ

This patch cleans up the handling of the variable `saved' in
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>

show more ...


# c7bcded6 10-Feb-1999 hubertf <hubertf@NetBSD.org>

The patch below does some minor cleanup of adventure(6): an additional
use of const I missed in bin/6041; avoiding a signed/unsigned warning;
marking an unused parameter as such; revoking setgid priv

The patch below does some minor cleanup of adventure(6): an additional
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>

show more ...


# 006cc8ac 14-Sep-1998 hubertf <hubertf@NetBSD.org>

return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>)


# dd397c84 13-Sep-1998 hubertf <hubertf@NetBSD.org>

remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>)


# 4d8c1c95 11-Sep-1998 hubertf <hubertf@NetBSD.org>

add main() prototype


# 5f3ed2ad 24-Aug-1998 hubertf <hubertf@NetBSD.org>

Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.


# 84f80fd6 11-Oct-1997 lukem <lukem@NetBSD.org>

KNFify


# 434abd72 10-Oct-1997 lukem <lukem@NetBSD.org>

deprecate register, fixup .Nm usage


# 690bee10 11-Aug-1997 christos <christos@NetBSD.org>

PR/3964: Eric Fischer: Remove dependencies to traditional cpp...
While I was there add WARNS?= too.


# ef77d6a3 21-May-1996 mrg <mrg@NetBSD.org>

oops, use <signal.h> not <sys/signal.h> (tholo@sigmasoft.com)


# dd34f9ec 21-May-1996 mrg <mrg@NetBSD.org>

give up setuid-ness. we don't need it. while i'm here, include
<sys/signal.h> and use SIGINT rather than 2.


# 52246097 06-Feb-1996 jtc <jtc@NetBSD.org>

Removed "extern int errno"; Added #include <errno.h> if not already present.


# 43b95251 21-Mar-1995 cgd <cgd@NetBSD.org>

clean up RCS ids


# 107c0a28 21-Oct-1994 jtc <jtc@NetBSD.org>

adventure(6), from 44lite