summaryrefslogtreecommitdiffstats
path: root/games/backgammon/common_source
AgeCommit message (Collapse)AuthorFilesLines
2016-01-08add missing 'void'tb1-2/+2
ok mestre@
2015-12-26Set as __dead a few more functions, that don't return, on games/mestre1-2/+2
With precious tip, help and also OK from tb@
2015-12-02Drop the argument passing between backgammon and teachgammon.tb3-11/+4
It's broken. Instead, make -d imply -n. You're supposed to know the rules before you start tweaking them. Issue reported by and ok pjanzen@ Patient help with the manual jmc@
2015-11-30Pledge for backgammon and teachgammon.tb9-72/+46
Both are straightforward "stdio rpath tty" programs; teachgammon exec's backgammon at the end, so give it "exec" in addition. While there, ANSIfy
2015-11-11creat() -> open equiv; from Frederic Nowakderaadt1-3/+7
2015-07-20Sometimes, the computer's move was printed, but the computer's men didn'tschwarze1-5/+2
actually move. This happened when "swap" was called earlier, and then later in the final call to makmove(), swapping back would have been required, but was erroneously denied. Patch sent in pjanzen@. It looks like the bug was already present in the original version in 4.1a BSD in 1982.
2015-06-26/home/otto/okotto2-2/+6
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,guenther1-4/+4
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@
2014-04-25Security is square, gaming is hip,schwarze2-126/+2
so extend the Valhalla Rampage to where it really matters. Tedu 118 lines of dead code containing 77 dead magic numbers, rotting in the tree since June 24, 2001. Spotted by and ok jsg@, ok sthen@.
2013-11-27remove erroneous char cast to switch expression processing getopt(3);okan1-2/+2
not used in any cases. ok deraadt@, guenther@, millert@
2013-08-29replace srandomdev()+random() with the arc4random*() familynaddy1-2/+2
tweaks and ok millert@, ok deraadt@
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt10-90/+10
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
2008-03-17synchronization between usage and synopsis; add some missing "usage:"'ssobrado1-3/+3
ok jmc@
2007-10-17remove "unused variable" warningschl1-3/+2
tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
2006-12-14fix DEBUG by renaming a variable colliding with ncursesmartin2-5/+5
found by Sascha Welter, ok otto@
2006-10-31Remove -h flag and simplify usage output to one line, like mostray1-17/+15
other programs. Vote to simplify usage jmc@, OK martin@.
2006-10-29-d: make it possible playing without doubling as it is not commonlymartin3-6/+12
played everywhere in the world ok todd@ otto@
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techtedu3-9/+9
2004-04-07Remove those option letters from the getopt string which do not have a caseaaron1-3/+3
handler below. millert@ ok
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert11-76/+32
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenderaadt1-7/+7
already, but he may have later changes to make still.
2002-07-30Kill buffer overflow.pjanzen3-13/+19
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-42/+42
2001-06-23termios -> cursespjanzen9-880/+229
2001-03-30filename length fix from ianm@cit.uws.edu.au; also, don't overflow the buffer.pjanzen1-4/+8
2001-02-18Get this not to segfault on startup on alpha.pjanzen3-8/+8
2000-07-23Avoid calling functions that can call the exit-on-error handler from thepjanzen2-11/+15
handler; use STD*_FILENO rather than 0-2.
2000-04-21documentation: refer to terminfo, not termcap, where appropriate.pjanzen2-7/+7
1999-07-31use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.pjanzen9-57/+58
1998-11-29Minor changes from NetBSDpjanzen1-3/+3
1998-09-02Delete two unused functions; jsm28@cam.ac.ukpjanzen3-20/+5
1998-08-29use names rather than numbers in signals, errors, etc; NetBSD PR6058; jsm28@cam.ac.ukpjanzen1-6/+5
1998-08-19Don't segfault in small windowspjanzen1-3/+3
1998-04-26Fix terminal initialization for libtermlib to be happy.millert1-6/+6
1998-03-19do not use in-source libraries; they are really problematic with obj@ and obj/ linksderaadt1-13/+0
1998-03-19NetBSD changes and further improvements and correctionspjanzen13-2003/+1306
1997-08-19bc -> lekstailey1-1/+1
1997-07-23tabifykstailey1-1/+1
1996-02-14Command line arguments were not being handled correctly. Modified foretheisen2-68/+90
proper funtionality and for compliance with manpage.
1996-02-12Added check for null pointer while processing cmdline options. Pointeretheisen1-1/+1
overrun was causing SEGV if any cmdline options were specified.
1995-10-18initial import of NetBSD treederaadt12-0/+3448