summaryrefslogtreecommitdiffstats
path: root/robots/move_robs.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-12 14:09:55 +0000
committerlukem <lukem@NetBSD.org>1997-10-12 14:09:55 +0000
commita0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 (patch)
treefd2b88ff5b355622ff28cd9528fb2d026c626a55 /robots/move_robs.c
parenta0041450da452d421fa15f352d533a000c2e7921 (diff)
downloadbsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.tar.gz
bsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.zip
WARNSify
Diffstat (limited to 'robots/move_robs.c')
-rw-r--r--robots/move_robs.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/robots/move_robs.c b/robots/move_robs.c
index 27bfb354..b45357cd 100644
--- a/robots/move_robs.c
+++ b/robots/move_robs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $ */
+/* $NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -33,16 +33,16 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $";
+__RCSID("$NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $");
#endif
#endif /* not lint */
# include "robots.h"
-# include <signal.h>
/*
* move_robots:
@@ -50,12 +50,9 @@ static char rcsid[] = "$NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $"
*/
void
move_robots(was_sig)
-bool was_sig;
+ int was_sig;
{
- register COORD *rp;
- register int y, x;
- register int mindist, d;
- static COORD newpos;
+ COORD *rp;
if (Real_time)
signal(SIGALRM, move_robots);
@@ -134,8 +131,9 @@ bool was_sig;
* add_score:
* Add a score to the overall point total
*/
+void
add_score(add)
-int add;
+ int add;
{
Score += add;
move(Y_SCORE, X_SCORE);
@@ -146,8 +144,9 @@ int add;
* sign:
* Return the sign of the number
*/
+int
sign(n)
-int n;
+ int n;
{
if (n < 0)
return -1;