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/compkl.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/compkl.c')
-rw-r--r-- | trek/compkl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/trek/compkl.c b/trek/compkl.c index 85a94853..1850d78e 100644 --- a/trek/compkl.c +++ b/trek/compkl.c @@ -1,4 +1,4 @@ -/* $NetBSD: compkl.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */ +/* $NetBSD: compkl.c,v 1.7 2009/05/24 19:18:44 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)compkl.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: compkl.c,v 1.6 2004/01/27 20:30:30 jsm Exp $"); +__RCSID("$NetBSD: compkl.c,v 1.7 2009/05/24 19:18:44 dholland Exp $"); #endif #endif /* not lint */ @@ -50,13 +50,14 @@ __RCSID("$NetBSD: compkl.c,v 1.6 2004/01/27 20:30:30 jsm Exp $"); ** ** This routine is used every time the Enterprise or the Klingons ** move. +** +** f -- set if new quadrant */ static void sortkl(void); void -compkldist(f) -int f; /* set if new quadrant */ +compkldist(int f) { int i, dx, dy; double d; @@ -98,7 +99,7 @@ int f; /* set if new quadrant */ */ static void -sortkl() +sortkl(void) { struct kling t; int f, i, m; |