summaryrefslogtreecommitdiffstats
path: root/cribbage/crib.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass -Wstrict-overflow, and while here, don't read from index -1 ofdholland2012-10-131-3/+3
| | | an array.
* sprinkle staticdholland2009-08-121-13/+25
|
* Rename internal getline() function to get_line() so it doesroy2009-07-131-4/+4
| | | conflict with the soon to be added getline(3) libc function.
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-3/+4
| | | next curses call
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* KNF and WARNS=3jmc2005-07-021-28/+15
|
* Remove uses of __P.jsm2004-01-271-3/+3
|
* Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99jsm2004-01-261-3/+3
| | | function.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Change deprecated curses function to new equivalent.blymn2001-12-061-3/+3
|
* Replace deprecated curses call with supported equivalent.blymn2001-12-041-3/+3
|
* remove redundant declchristos2001-02-051-4/+2
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-5/+26
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Add use of `const' where appropriate to the games.jsm1999-09-081-3/+3
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* Add braces to make the new egcs happy.veego1998-08-301-3/+4
|
* minor KNFifylukem1997-10-111-7/+5
|
* WARNSifylukem1997-10-101-16/+20
|
* make explicit comparisons to NULL, s/rindex/strrchr/mikel1997-07-101-3/+3
|
* Clean up play, let player see play more often, improve display timing.phil1997-07-091-2/+14
| | | Preliminary work from PR 2055 (as reverse patches).
* clean up importcgd1995-03-211-354/+368
|
* change <sys/signal.h> to <signal.h>jtc1995-02-281-2/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* Cleanup for GCC 2.mycroft1993-04-181-1/+4
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+610