summaryrefslogtreecommitdiffstats
path: root/cribbage
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-3/+3
|
* Use PREFIX nowCameron Katri2021-03-282-7/+9
|
* Get all the games compiling for iOSCameron Katri2021-02-221-10/+15
|
* - enlarge buffer to avoid snprintf() truncationmrg2019-02-031-3/+3
|
* Pass -Wstrict-overflow, and while here, don't read from index -1 ofdholland2012-10-134-30/+31
| | | an array.
* reinstate NULL cast by request, where the NULL was being passed as a varargplunky2011-09-011-3/+3
|
* NULL does not need a castplunky2011-08-311-3/+3
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-6/+4
|
* Don't use variables as format strings.joerg2011-05-231-7/+7
|
* ANSIfyjoerg2011-05-231-5/+3
|
* When using -lcurses, you also need -lterminfo.he2010-02-061-3/+3
| | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies.
* sprinkle staticdholland2009-08-126-66/+71
|
* Rename internal getline() function to get_line() so it doesroy2009-07-133-12/+12
| | | conflict with the soon to be added getline(3) libc function.
* sprintf -> snprintfdholland2009-06-043-11/+13
|
* 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
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-152-6/+6
|
* __attribute -> __attribute__ragge2007-09-161-3/+3
|
* remove duplicate #include <stdlib.h>rtr2006-03-201-3/+2
|
* Now that we use exit(2), we need to include <stdlib.h> for its definition.he2006-03-191-2/+3
|
* include <stdlib.h> to get a prototype for exitchristos2006-03-191-2/+3
|
* Coverity CID 1295: Don't allow cchose to return a negative number. It ischristos2006-03-181-2/+6
| | | used as an index.
* KNF and WARNS=3jmc2005-07-028-166/+87
|
* Fixed wrong use of datatypes. In wait_for(), a char was used togetherrillig2005-04-191-8/+5
| | | | | | with getchar(), in readchar(), a char was used to read input, which in getuchar() is used as an argument to islower() and toupper(). Also removed a condition which terminated the process if the user typed in character 255. Approved by christos.
* Cast last argument of execl to (char *).jsm2005-02-151-3/+3
| | | Reviewed by <hubertf>.
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-6/+6
|
* Mark unused parameters, nonreturning functions and format functions injsm2004-02-081-3/+5
| | | the few cases not already marked.
* Remove uses of __P.jsm2004-01-272-55/+55
|
* Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99jsm2004-01-263-8/+8
| | | function.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0712-79/+31
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Avoid confict with reserved identifier "expl".thorpej2002-12-064-24/+24
|
* n-dashes are even better here. Noted by Robert Elz.wiz2002-09-301-3/+3
|
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-9/+6
|
* New sentences begin on new lines.wiz2002-09-261-16/+21
| | | Patch from Richard Elz, slightly improved by yours truly.
* __STDC__ is always defined on NetBSD.wiz2002-05-261-28/+3
|
* Change deprecated curses function to new equivalent.blymn2001-12-061-3/+3
|
* Replace deprecated curses call with supported equivalent.blymn2001-12-041-3/+3
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-8/+8
|
* remove redundant declchristos2001-02-051-4/+2
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Since our gcc doesn't warn about NULL format strings anymore, we candrochner1999-11-091-3/+3
| | | | fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
* Add more files to FILES section of cribbage.6.jsm1999-10-011-2/+4
|
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-303-10/+10
|
* Define variables as BOOLEAN, not bool, where the extern declarationsjsm1999-09-191-6/+6
| | | already use BOOLEAN.
* Fix -Wsign-compare warnings.jsm1999-09-181-3/+3
|
* Make cribbage use the POSIX.2 pager behaviour.jsm1999-09-131-15/+27
|
* 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.
* Fix glitch in const changes (bin/8365 from John.P.Darrow@wheaton.edu).jsm1999-09-101-2/+2
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-082-6/+6
| | | | | | | | | | | | the games. 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). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* Add use of `const' where appropriate to the games.jsm1999-09-086-59/+62
| | | | | | | | | 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.