diff options
| author | dholland <dholland@NetBSD.org> | 2009-07-20 05:44:02 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2009-07-20 05:44:02 +0000 |
| commit | ce061e17a9dda9852d7bfd583c089bbd8dac1333 (patch) | |
| tree | 012204b893307d40ce4f844f199906efcea20d69 /robots/move_robs.c | |
| parent | 275e28ad8575814dcb1749559423a55a82960cfe (diff) | |
| download | bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.tar.gz bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.zip | |
ANSIfy. Use __dead. Object diffs checked.
Diffstat (limited to 'robots/move_robs.c')
| -rw-r--r-- | robots/move_robs.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/robots/move_robs.c b/robots/move_robs.c index 9b5f8947..ce53c336 100644 --- a/robots/move_robs.c +++ b/robots/move_robs.c @@ -1,4 +1,4 @@ -/* $NetBSD: move_robs.c,v 1.7 2003/08/07 09:37:37 agc Exp $ */ +/* $NetBSD: move_robs.c,v 1.8 2009/07/20 05:44:02 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move_robs.c,v 1.7 2003/08/07 09:37:37 agc Exp $"); +__RCSID("$NetBSD: move_robs.c,v 1.8 2009/07/20 05:44:02 dholland Exp $"); #endif #endif /* not lint */ @@ -45,8 +45,7 @@ __RCSID("$NetBSD: move_robs.c,v 1.7 2003/08/07 09:37:37 agc Exp $"); * Move the robots around */ void -move_robots(was_sig) - int was_sig; +move_robots(int was_sig) { COORD *rp; @@ -129,8 +128,7 @@ move_robots(was_sig) * Add a score to the overall point total */ void -add_score(add) - int add; +add_score(int add) { Score += add; move(Y_SCORE, X_SCORE); @@ -142,8 +140,7 @@ add_score(add) * Return the sign of the number */ int -sign(n) - int n; +sign(int n) { if (n < 0) return -1; |
