Commit Graph

22 Commits

Author SHA1 Message Date
rillig
1182a44c59 games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
nia
e54fc04f5a random(6): Use arc4random_uniform to simplify code 2020-07-26 15:24:00 +00:00
dholland
5305281b0c sprinkle static 2009-08-12 08:21:41 +00:00
dholland
d99ff15344 ANSIfy. Also, we now have RANDOM_MAX; use it. Object diffs checked... 2009-07-20 05:33:35 +00:00
lukem
2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
dholland
d4f48e67da Make the default WARNS for games 4. The only game that needs to set WARNS
to anything else now is rogue, so clear WARNS from the other makefiles.
2008-01-28 07:03:58 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
hubertf
b1eaefe397 Xref shuffle(1) from random(6), and vice versa 2007-03-20 16:12:40 +00:00
rpaulo
e58060915c Pass lint(1). 2005-08-10 14:02:26 +00:00
rpaulo
2c43d92fd8 Enable WARNS=3. 2005-08-10 14:02:10 +00:00
jsm
cb5fd8342e Remove uses of __P. 2004-01-27 20:30:28 +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
wiz
c91d8d6b9b Lots of minor fixes resulting from reading these man pages in detail. 2002-09-26 18:31:58 +00:00
jsm
17cc8f3ce6 Define and use MAXRANDOM instead of LONG_MAX. 2000-01-18 16:12:25 +00:00
jsm
b03d4fa882 Add __noreturn__' and __unused__' attributes 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).

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).
1999-09-08 21:45:25 +00:00
garbled
d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
lukem
bc7a354dc9 WARNSify 1997-10-12 01:04:43 +00:00
tls
2ea7b8f11a Sync to 4.4BSD-Lite2 1997-01-07 12:24:57 +00:00
cgd
4c3487b0e9 NetBSD RCS IDs 1995-04-22 07:44:02 +00:00
cgd
c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
jtc
b7b0d5dc48 #include <limits.h> to get LONG_MAX 1994-10-21 21:24:11 +00:00
jtc
a6878b5d81 random(6), from 44lite 1994-10-21 21:18:45 +00:00