add missing 'void'ok mestre@
Set as __dead a few more functions, that don't return, on games/With precious tip, help and also OK from tb@
Drop the argument passing between backgammon and teachgammon.It's broken. Instead, make -d imply -n. You're supposed toknow the rules before you start tweaking them.Issue reported by and ok pja
Drop the argument passing between backgammon and teachgammon.It's broken. Instead, make -d imply -n. You're supposed toknow the rules before you start tweaking them.Issue reported by and ok pjanzen@Patient help with the manual jmc@
show more ...
Pledge for backgammon and teachgammon.Both are straightforward "stdio rpath tty" programs; teachgammonexec's backgammon at the end, so give it "exec" in addition.While there, ANSIfy
creat() -> open equiv; from Frederic Nowak
Sometimes, the computer's move was printed, but the computer's men didn'tactually move. This happened when "swap" was called earlier, and thenlater in the final call to makmove(), swapping back wo
Sometimes, the computer's move was printed, but the computer's men didn'tactually move. This happened when "swap" was called earlier, and thenlater in the final call to makmove(), swapping back would have beenrequired, but was erroneously denied. Patch sent in pjanzen@.It looks like the bug was already present in the original versionin 4.1a BSD in 1982.
/home/otto/ok
Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>, and <sys/ttydefaults.h>Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAXPull in <limits.h> where needed
Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>, and <sys/ttydefaults.h>Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAXPull in <limits.h> where neededPrefer sizeof(var) over MAXFOO or FOO_MAXok deraadt@
Security is square, gaming is hip,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.
Security is square, gaming is hip,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@.
remove erroneous char cast to switch expression processing getopt(3);not used in any cases.ok deraadt@, guenther@, millert@
replace srandomdev()+random() with the arc4random*() familytweaks and ok millert@, ok deraadt@
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(the 33,000 line diff is essentially mechanical)ok with the idea millert, ok dms
synchronization between usage and synopsis; add some missing "usage:"'sok jmc@
remove "unused variable" warningstested by deraadt@ on a gcc2 archlooks ok ray@ ok deraadt@
fix DEBUG by renaming a variable colliding with ncursesfound by Sascha Welter, ok otto@
Remove -h flag and simplify usage output to one line, like mostother programs.Vote to simplify usage jmc@, OK martin@.
-d: make it possible playing without doubling as it is not commonlyplayed everywhere in the worldok todd@ otto@
assorted fixes mostly from coverity via netbsd via jasper adriaanse via tech
Remove those option letters from the getopt string which do not have a casehandler below. millert@ ok
Remove the advertising clause in the UCB license which Berkeleyrescinded 22 July 1999. Proofed by myself and Theo.
2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenalready, but he may have later changes to make still.
Kill buffer overflow.
Part 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 don
Part 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.
termios -> curses
filename length fix from ianm@cit.uws.edu.au; also, don't overflow the buffer.
12