From 718b40e43f2fbb804acc0266499926f8e51f83ef Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 12 Oct 1997 00:53:45 +0000 Subject: WARNSify --- mille/roll.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mille/roll.c') 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 #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--) -- cgit v1.2.3