summaryrefslogtreecommitdiffstats
path: root/games/arithmetic
AgeCommit message (Collapse)AuthorFilesLines
2018-12-27convert to unsigned variables to avoid some overflows.tedu1-9/+10
analysis and patch from David Fifield
2016-09-11Callers of time(3) should #include <time.h>.tb1-1/+2
ok deraadt
2016-01-27- optarg and optind are declared by unistd.h, so remove them...gsoares1-8/+9
- use strtonum rather than atoi - zap case '?' in getopt(3) switch - use _exit(2) in signal handler - use __progname in usage() instead of hardcoded name OK tb@ mestre@
2016-01-25Remove unused headermestre1-2/+1
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre1-3/+1
OK tb@
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre1-2/+1
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@
2015-12-25Declare usage() functions as __dead void, if they don't return, on games section.mestre1-3/+3
Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore. OK tb@
2015-10-24Cast ctype functions' arguments to unsigned char.mmcc1-3/+3
ok guenther@
2015-10-10Pledge that arithmetic only takes "stdio".doug1-1/+4
2015-09-12use .Cm rather than .Ar for fixed string argumentsschwarze1-5/+5
2015-08-22remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krwderaadt1-2/+2
2013-08-29replace srandomdev()+random() with the arc4random*() familynaddy1-7/+4
tweaks and ok millert@, ok deraadt@
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
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
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-04-02-o and -r take arguments; from Igor Sobradojmc1-3/+3
2007-03-20remove some bogus *p tests from charles longeautedu1-3/+3
ok deraadt millert
2004-07-13replace bad macro;jmc1-2/+2
2004-07-09ansi; khalek@linuxgamers.netderaadt1-16/+10
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert2-13/+5
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-23some typos, and clarification of game rules;jmc1-3/+6
help, suggestions and ok pjanzen@
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)millert1-3/+3
good enough for games but we should at least use a decent seed. pjanzen@ OK
2002-06-11no more err(3) newlines in games; ok pjanzen@jsyn1-4/+4
2002-05-31de-registerpjanzen1-4/+4
2002-05-31No dm -> no need to revoke setegid.pjanzen1-6/+2
2002-05-23The troll strikes.. The troll strikes.. The dungeon master dies.distrib/sets/listsderaadt1-2/+1
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-9/+9
1999-07-09- remove all trailing whitespaceaaron1-2/+2
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1-2/+2
is used instead; kwesterback@home.com
1998-12-15Always provide an argument to .Nm in SYNOPSIS sectionpjanzen1-2/+2
1998-11-29Don't capitalize game names at the beginning of sentences.pjanzen1-4/+4
1998-09-15use const where appropriate; jsm28@cam.ac.ukpjanzen1-6/+6
1998-08-19tags, formatting, ANSI-fication, prototypes, de-typos, and the occasionalpjanzen2-9/+9
initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
1998-03-12OpenBSD ID (changed from NetBSD)pjanzen1-2/+2
1998-02-26cleanup efforts care of pjanzen@foatdi.harvard.eduderaadt1-23/+34
1997-09-21$OpenBSD$deraadt1-2/+1
1997-01-17r?index -> strr?chrmillert1-2/+2
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!millert1-1/+1
1996-04-23sync with netbsd 960418deraadt1-3/+3
1995-10-18initial import of NetBSD treederaadt3-0/+496