summaryrefslogtreecommitdiffstats
path: root/robots/move.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-20 05:44:02 +0000
committerdholland <dholland@NetBSD.org>2009-07-20 05:44:02 +0000
commitce061e17a9dda9852d7bfd583c089bbd8dac1333 (patch)
tree012204b893307d40ce4f844f199906efcea20d69 /robots/move.c
parent275e28ad8575814dcb1749559423a55a82960cfe (diff)
downloadbsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.tar.gz
bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.tar.zst
bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.zip
ANSIfy. Use __dead. Object diffs checked.
Diffstat (limited to 'robots/move.c')
-rw-r--r--robots/move.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/robots/move.c b/robots/move.c
index 7edaae35..de030121 100644
--- a/robots/move.c
+++ b/robots/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $ */
+/* $NetBSD: move.c,v 1.13 2009/07/20 05:44:02 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $");
+__RCSID("$NetBSD: move.c,v 1.13 2009/07/20 05:44:02 dholland Exp $");
#endif
#endif /* not lint */
@@ -47,7 +47,7 @@ __RCSID("$NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $");
* Get and execute a move from the player
*/
void
-get_move()
+get_move(void)
{
int c;
#ifdef FANCY
@@ -208,7 +208,7 @@ ret:
* being eaten?
*/
bool
-must_telep()
+must_telep(void)
{
int x, y;
static COORD newpos;
@@ -240,8 +240,7 @@ must_telep()
* Execute a move
*/
bool
-do_move(dy, dx)
- int dy, dx;
+do_move(int dy, int dx)
{
static COORD newpos;
@@ -277,8 +276,7 @@ do_move(dy, dx)
* Player would get eaten at this place
*/
bool
-eaten(pos)
- const COORD *pos;
+eaten(const COORD *pos)
{
int x, y;
@@ -300,7 +298,7 @@ eaten(pos)
* Reset the count variables
*/
void
-reset_count()
+reset_count(void)
{
Count = 0;
Running = FALSE;
@@ -313,7 +311,7 @@ reset_count()
* See if we are jumping, i.e., we should not refresh.
*/
bool
-jumping()
+jumping(void)
{
return (Jump && (Count || Running || Waiting));
}