diff options
author | christos <christos@NetBSD.org> | 1997-10-12 17:45:06 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-12 17:45:06 +0000 |
commit | a77b3f8edc13dc6efdbcf80e336689cfa1de08ab (patch) | |
tree | dfe6f38b6473068455b85cd2410d8394e1239336 /monop/roll.c | |
parent | 5526682d8116582745b79bee12e5007abfddcd86 (diff) | |
download | bsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.tar.gz bsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.tar.zst bsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.zip |
WARNSify
Diffstat (limited to 'monop/roll.c')
-rw-r--r-- | monop/roll.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/monop/roll.c b/monop/roll.c index ddf38a2e..a0e9e1c8 100644 --- a/monop/roll.c +++ b/monop/roll.c @@ -1,4 +1,4 @@ -/* $NetBSD: roll.c,v 1.5 1995/03/23 08:35:13 cgd Exp $ */ +/* $NetBSD: roll.c,v 1.6 1997/10/12 17:45:25 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,14 +33,16 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)roll.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: roll.c,v 1.5 1995/03/23 08:35:13 cgd Exp $"; +__RCSID("$NetBSD: roll.c,v 1.6 1997/10/12 17:45:25 christos Exp $"); #endif #endif /* not lint */ +#include "monop.ext" #include <stdlib.h> /* @@ -52,11 +54,13 @@ static char rcsid[] = "$NetBSD: roll.c,v 1.5 1995/03/23 08:35:13 cgd Exp $"; # if defined(pdp11) # define MAXRAND 32767L +int roll(ndie, nsides) -int ndie, nsides; { +int ndie, nsides; +{ - reg long tot; - reg unsigned n, r; + long tot; + unsigned n, r; tot = 0; n = ndie; @@ -67,11 +71,12 @@ int ndie, nsides; { # else +int roll(ndie, nsides) -reg int ndie, nsides; { +int ndie, nsides; { - reg int tot, r; - reg double num_sides; + int tot, r; + double num_sides; num_sides = nsides; tot = 0; |