summaryrefslogtreecommitdiffstats
path: root/robots/score.c
Commit message (Collapse)AuthorAgeFilesLines
* sprinkle staticdholland2009-08-121-4/+7
|
* don't ignore errors from read(); found by lintdholland2009-08-031-5/+4
|
* Assorted minor cleanups, no functional change:dholland2009-07-201-15/+20
| | | | | | | | | | - u_int* -> uint* - don't make private typedefs of system structures - use curses TRUE and FALSE only with curses booleans, otherwise true and false; - includes cleanup - group globals in extern.c by functionality Object file diffs inspected.
* Whitespace.dholland2009-07-201-17/+17
|
* ANSIfy. Use __dead. Object diffs checked.dholland2009-07-201-13/+8
|
* If getpwuid() returns null, its not usually a good idea to dereferenceabs2006-03-171-5/+5
| | | | | that to try to assign a default value. Just copy the default value into the final destination. Addresses Coverty CID 925
* Remove uses of __P.jsm2004-01-271-4/+4
|
* 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.
* Cast pointer diffs to long for printing with %ld.thorpej2000-04-271-3/+3
|
* Fix arguments to *printw().jdc2000-04-271-3/+3
|
* Don't insert leading 0s in the score display. (HI CHRISTOS!)mycroft2000-04-091-4/+4
|
* Report scores as auto-bot or not correctly.jsm2000-01-201-3/+3
| | | Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
* Fix -Wsign-compare warnings.jsm1999-09-181-5/+4
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-9/+8
| | | | | | | | | | | | | | | 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.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-3/+3
| | | the games.
* Add use of `const' where appropriate to the games.jsm1999-09-081-5/+6
| | | | | | | | | 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 missing prototypeschristos1999-05-161-2/+5
|
* Add -A for automatic playing mode.christos1999-05-151-29/+84
| | | Make the score file MI
* deprecate bzero, rindex, etc. use symbolic constants in open()lukem1997-10-121-6/+6
|
* WARNSifylukem1997-10-121-23/+19
|
* clean up importcgd1995-04-221-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+184