summaryrefslogtreecommitdiff
path: root/games/robots/rnd_pos.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2004-11-29 08:52:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2004-11-29 08:52:30 +0000
commit9f35ef98a75e416220366f7f6ac0f8864d6239fb (patch)
treea3cc1c29744d5270e4662e30a4a7b7d0158c77ed /games/robots/rnd_pos.c
parent0e91e5b94fb68ab00eed960bad30f73eba33c15b (diff)
ansi. ok deraadt@
Diffstat (limited to 'games/robots/rnd_pos.c')
-rw-r--r--games/robots/rnd_pos.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/games/robots/rnd_pos.c b/games/robots/rnd_pos.c
index e98f4510d82..734abd6c19a 100644
--- a/games/robots/rnd_pos.c
+++ b/games/robots/rnd_pos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd_pos.c,v 1.3 2003/06/03 03:01:41 millert Exp $ */
+/* $OpenBSD: rnd_pos.c,v 1.4 2004/11/29 08:52:29 jsg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -33,7 +33,7 @@
#if 0
static char sccsid[] = "@(#)rnd_pos.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: rnd_pos.c,v 1.3 2003/06/03 03:01:41 millert Exp $";
+static char rcsid[] = "$OpenBSD: rnd_pos.c,v 1.4 2004/11/29 08:52:29 jsg Exp $";
#endif
#endif /* not lint */
@@ -46,7 +46,7 @@ static char rcsid[] = "$OpenBSD: rnd_pos.c,v 1.3 2003/06/03 03:01:41 millert Exp
* Pick a random, unoccupied position
*/
COORD *
-rnd_pos()
+rnd_pos(void)
{
static COORD pos;
static int call = 0;
@@ -61,8 +61,7 @@ rnd_pos()
}
int
-rnd(range)
- int range;
+rnd(int range)
{
return (int)random() % range;
}