summaryrefslogtreecommitdiff
path: root/games/fish/fish.c
AgeCommit message (Collapse)Author
2016-03-07- General changes:mestre
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3) - Specific changes: - atc(6): this used -? and -u for usage(), remove both from game and manpage - bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h - hunt(6): replace fputs(3) by fprintf(3) OK tb@ after his suggestions
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-04More headers removal and sorted the remaining alphabetically.mestre
Most noticeable that were removed are sys/types.h which will be included from stdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.h that was used with the old idiom (denom * random() / LONG_MAX), although it was only removed were applicable (some files still need that header). OK tb@
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@
2015-12-25Declare usage() functions as __dead void, if they don't return, on games ↵mestre
section. 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-11-30slightly interesting pledge for fish:tb
start with "stdio rpath proc exec" since it pipes instructions to a pager afterwards "stdio" is enough
2015-02-18no reason for magic numbers to be octal. just drop the leading 0.Ted Unangst
still equally magic.
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
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-11-29ansi. ok deraadt@Jonathan Gray
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)Todd C. Miller
good enough for games but we should at least use a decent seed. pjanzen@ OK
2002-05-31No dm -> no need to revoke setegid.Paul Janzen
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2000-04-08Handle EOF more cleanlyPaul Janzen
2000-04-08Fix the card shuffle/draw algorithm. Patch only slightlyPaul Janzen
modified from that given by John Darrow in NetBSD PR 9651.
1999-09-25Tidying and minor changes from or based on jsm28@cam.ac.uk's work for thePaul Janzen
Linux bsd-games package and NetBSD. Mainly using 'const'.
1999-06-10jsm28@cam.ac.uk : handle PAGER in a manner consistent with thePaul Janzen
Single UNIX specification for mailx and man (http://www.opengroup.org/onlinepubs/7908799/xcu/mailx.html).
1999-03-26Buffer overflow fix (from FreeBSD)Paul Janzen
1998-08-22Revoke gid (!) and minor tidyingPaul Janzen
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1995-10-18initial import of NetBSD treeTheo de Raadt