Commit Graph

21 Commits

Author SHA1 Message Date
dsl 49f7d8a9b1 Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
agc e5aeb4ea46 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
christos dc6488eb8e remove redundant decls. 2001-02-05 01:10:08 +00:00
jwise a5f75468c7 Normalize signature of ship handling functions -- struct ship * from and
struct ship * to are now always the first two args.
2001-01-04 06:16:51 +00:00
jwise d62e34ecca Various stylistic nits. 2001-01-04 05:34:56 +00:00
jwise 61a39e0b38 More rationalization of include files:
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.
2001-01-04 03:51:23 +00:00
jwise aac077fce8 Rationalize inclusion of header files: cut down on `include everything
everywhere' a little (more to go), and as per KNF, local includes after
system includes.
2001-01-04 03:21:16 +00:00
jwise bca097d567 First half of static-ization of local funcs. 2001-01-04 01:53:24 +00:00
jwise dfea9f08db ANSIfy in preparation for further work. 2001-01-01 21:57:37 +00:00
jwise 48253ebcef Change the macro to roll a six-sided die from die() to dieroll() (for
obvious reasons of convention).
2000-11-30 22:02:20 +00:00
jsm ce5670f70f Fix uses of namespaces reserved by ISO C or POSIX.1. 1999-09-30 18:01:31 +00:00
jsm 092d313019 Add use of `const' where appropriate to 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).

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.
1999-09-08 21:17:44 +00:00
hubertf 24f809b060 The game sail(6) has a function Write() which is used both with
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>.
1999-02-10 00:45:45 +00:00
veego 04afeca685 Add braces to make the new egcs happy. 1998-08-30 09:19:36 +00:00
christos 5175902c09 - make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
1997-10-13 21:02:57 +00:00
christos bf72b656b0 Warns fixes:
use varargs properly
	use unsigned chars where appropriate
	fix typos
	eliminate gcc warnings
1997-10-13 19:42:53 +00:00
cgd c4816c32b3 Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd 982615d7df clean up import, NetBSD RCS IDs 1995-04-22 10:36:43 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00