summaryrefslogtreecommitdiff
path: root/games/adventure/wizard.c
AgeCommit message (Collapse)Author
2017-06-23Remove unused confirm() and datime() functions.Frederic Cambus
Those functions are unused and have been compiled out since 1998, it's time to let them go. OK sthen@, tom@, mestre@
2016-03-08Headers cleanup with and OK tb@mestre
This was prompted by an initial patch sent by Edgar Pettijohn <edgar ! pettijohn-web.com> but the actual commit is different
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it. Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also. "seems comprehensive to me" deraadt@ and OK tb@
2014-12-31adventure requires deterministic random for its internal dataTed Unangst
"obfuscation" scheme to work (words fail me), but we can use arc4random for the in game fun. from theo buehler
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2004-07-09ansi; khalek@linuxgamers.netTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-07Change wd1 and wd2 from pointers to arrays. This removes the needTodd C. Miller
for getin() to have static buffers and allows us to do "sizeof wd1". Also fix saved game path. It was removing the first 2 chars of the filename due to a bug. tdeval@ OK
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenTheo de Raadt
already, but he may have later changes to make still.
2002-02-18someone should read compiler messages on the powerpcTheo de Raadt
2001-03-22File name buffer should be MAXPATHLEN; ianm@cit.uws.edu.au. Also avoidPaul Janzen
buffer overflow on file name.
1998-08-31merge in NetBSD, including recent PR's of jsm28@cam.ac.ukPaul Janzen
1998-07-26Modernize time proceedures. Remove obsolete commentimp
1997-07-23tabifykstailey
1997-07-05<time.h>Michael Shalayeff
1997-01-11Fix PR#2 in a simplistic way. Handle EOF on all getchar()sNiklas Hallqvist
1996-12-19setgid games, not setuid games. closes a neat set of holesTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt