diff options
author | lukem <lukem@NetBSD.org> | 1997-10-12 00:53:45 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-12 00:53:45 +0000 |
commit | 718b40e43f2fbb804acc0266499926f8e51f83ef (patch) | |
tree | ce23ec6ddb7cc228fe2f9f6af3f68bd843f6c4f9 /mille/roll.c | |
parent | 465f7ee80758219cdc70f7ed834148335f5c4d59 (diff) | |
download | bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.tar.gz bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.tar.zst bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.zip |
WARNSify
Diffstat (limited to 'mille/roll.c')
-rw-r--r-- | mille/roll.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mille/roll.c b/mille/roll.c index 98d84d88..4bcf7ed9 100644 --- a/mille/roll.c +++ b/mille/roll.c @@ -1,4 +1,4 @@ -/* $NetBSD: roll.c,v 1.5 1997/05/23 23:09:42 jtc Exp $ */ +/* $NetBSD: roll.c,v 1.6 1997/10/12 00:54:28 lukem Exp $ */ /* * Copyright (c) 1982, 1993 @@ -33,11 +33,12 @@ * 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 1997/05/23 23:09:42 jtc Exp $"; +__RCSID("$NetBSD: roll.c,v 1.6 1997/10/12 00:54:28 lukem Exp $"); #endif #endif /* not lint */ @@ -50,12 +51,12 @@ static char rcsid[] = "$NetBSD: roll.c,v 1.5 1997/05/23 23:09:42 jtc Exp $"; * */ +int roll(ndie, nsides) -register int ndie, nsides; + int ndie, nsides; { - register int tot; - extern unsigned int random(); + int tot; tot = 0; while (ndie--) |