diff options
author | dholland <dholland@NetBSD.org> | 2009-05-24 19:18:44 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-05-24 19:18:44 +0000 |
commit | f31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f (patch) | |
tree | 1e15cca5fb3f9fb257f16fa6e62d5d340c2b5a7e /trek/torped.c | |
parent | 90b64f7f9542e62fa50679637aa870abd315f331 (diff) | |
download | bsdgames-darwin-f31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f.tar.gz bsdgames-darwin-f31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f.tar.zst bsdgames-darwin-f31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f.zip |
ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
Diffstat (limited to 'trek/torped.c')
-rw-r--r-- | trek/torped.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/trek/torped.c b/trek/torped.c index a0e6be7b..3e1b3853 100644 --- a/trek/torped.c +++ b/trek/torped.c @@ -1,4 +1,4 @@ -/* $NetBSD: torped.c,v 1.9 2007/12/15 19:44:45 perry Exp $ */ +/* $NetBSD: torped.c,v 1.10 2009/05/24 19:18:44 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)torped.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: torped.c,v 1.9 2007/12/15 19:44:45 perry Exp $"); +__RCSID("$NetBSD: torped.c,v 1.10 2009/05/24 19:18:44 dholland Exp $"); #endif #endif /* not lint */ @@ -67,8 +67,7 @@ static int randcourse(int); /*ARGSUSED*/ void -torped(v) - int v __unused; +torped(int v __unused) { int ix, iy; double x, y, dx, dy; @@ -230,8 +229,7 @@ torped(v) */ static int -randcourse(n) -int n; +randcourse(int n) { double r; int d; |