summaryrefslogtreecommitdiffstats
path: root/sail/dr_2.c
Commit message (Collapse)AuthorAgeFilesLines
* - enlarge buffer to avoid snprintf() truncationmrg2019-02-031-3/+3
|
* temp is a pointer, and tempmax, not sizeof(temp), is the length ofapb2014-03-281-3/+3
| | | the buffer that it points to. Adjust a strlcat() call to suit.
* Create some abstraction for sending messages.dholland2009-03-141-9/+12
| | | | | Make a send and receive function for each possible message. Make these have useful argument signatures. Hide the list of message codes inside sync.c.
* Sprinkle some "bool". And don't use '\0' to mean 'false'.dholland2009-03-141-5/+5
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-141-25/+54
| | | No functional change.
* String buffer cleanup. sprintf bad.dholland2009-03-141-22/+22
|
* Don't use char for random state variables; use int or bool.dholland2009-03-141-6/+7
|
* Braces around a nested if, for clarity; suggested by diffing against OpenBSD.dholland2009-03-021-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.
* remove redundant decls.christos2001-02-051-6/+2
|
* Normalize signature of ship handling functions -- struct ship * from andjwise2001-01-041-18/+18
| | | struct ship * to are now always the first two args.
* More rationalization of include files:jwise2001-01-041-2/+4
| | | | | | | | a.) Don't include a zillion system headers from "extern.h" (actually, don't include any). b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't have to be pulled in everywhere (it's only used in two places). The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
* Rationalize inclusion of header files: cut down on `include everythingjwise2001-01-041-3/+4
| | | | everywhere' a little (more to go), and as per KNF, local includes after system includes.
* First half of static-ization of local funcs.jwise2001-01-041-9/+19
|
* ANSIfy in preparation for further work.jwise2001-01-011-35/+19
|
* Change the macro to roll a six-sided die from die() to dieroll() (forjwise2000-11-301-3/+3
| | | obvious reasons of convention).
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-301-7/+7
|
* Add use of `const' where appropriate to the games.jsm1999-09-081-6/+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.
* The game sail(6) has a function Write() which is used both withhubertf1999-02-101-8/+7
| | | | | | | | | | | | integer arguments and with string arguments (cast to long, and in one place to int). The patch here cleans this up, making it into two separate functions; this allows for the game to be made const-correct in future and improves portability. The patch also contains two other fragments: a change to use the symbolic constant SEEK_END with fseek(), and a change to use snprintf in one place to avoid a buffer overrun. Via PR 6569 by Joseph Myers <jsm28@cam.ac.uk>.
* fix prototype, per PR#5867hubertf1998-09-111-3/+3
|
* Rename internal move() to move_ship(), as per PR 5841 byhubertf1998-07-251-4/+4
| | | Joseph Myers <jsm@octomino.demon.co.uk>.
* - make sure that the arguments to the printf like functions are correctchristos1997-10-131-4/+4
| | | - add a makemsg() function to accompany makesignal.
* Warns fixes:christos1997-10-131-21/+32
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-3/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, NetBSD RCS IDscgd1995-04-221-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+275