diff options
author | lukem <lukem@NetBSD.org> | 1997-10-12 14:09:55 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-12 14:09:55 +0000 |
commit | a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 (patch) | |
tree | fd2b88ff5b355622ff28cd9528fb2d026c626a55 /robots/rnd_pos.c | |
parent | a0041450da452d421fa15f352d533a000c2e7921 (diff) | |
download | bsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.tar.gz bsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.tar.zst bsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.zip |
WARNSify
Diffstat (limited to 'robots/rnd_pos.c')
-rw-r--r-- | robots/rnd_pos.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/robots/rnd_pos.c b/robots/rnd_pos.c index a08171bb..4ad8fc53 100644 --- a/robots/rnd_pos.c +++ b/robots/rnd_pos.c @@ -1,4 +1,4 @@ -/* $NetBSD: rnd_pos.c,v 1.3 1995/04/22 10:09:07 cgd Exp $ */ +/* $NetBSD: rnd_pos.c,v 1.4 1997/10/12 14:10:02 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,11 +33,12 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)rnd_pos.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: rnd_pos.c,v 1.3 1995/04/22 10:09:07 cgd Exp $"; +__RCSID("$NetBSD: rnd_pos.c,v 1.4 1997/10/12 14:10:02 lukem Exp $"); #endif #endif /* not lint */ @@ -54,7 +55,6 @@ rnd_pos() { static COORD pos; static int call = 0; - register int i = 0; do { pos.y = rnd(Y_FIELDSIZE - 1) + 1; @@ -65,10 +65,10 @@ rnd_pos() return &pos; } +int rnd(range) -int range; + int range; { - unsigned int rand(); return rand() % range; } |