diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 04:48:03 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 04:48:03 +0000 |
commit | c3bf93e0abeaf9b5ea304d3573f2beda026b1a1b (patch) | |
tree | 8d9e8de203da8b607b81155eb25ac077fc12290f /atc/update.c | |
parent | 63e571cca69e7558ecb2d0e2e654eff896c0ac62 (diff) | |
download | bsdgames-darwin-c3bf93e0abeaf9b5ea304d3573f2beda026b1a1b.tar.gz bsdgames-darwin-c3bf93e0abeaf9b5ea304d3573f2beda026b1a1b.tar.zst bsdgames-darwin-c3bf93e0abeaf9b5ea304d3573f2beda026b1a1b.zip |
sprinkle static
Diffstat (limited to 'atc/update.c')
-rw-r--r-- | atc/update.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/atc/update.c b/atc/update.c index 0fcc967f..c3741fb7 100644 --- a/atc/update.c +++ b/atc/update.c @@ -1,4 +1,4 @@ -/* $NetBSD: update.c,v 1.20 2009/05/26 00:00:56 dholland Exp $ */ +/* $NetBSD: update.c,v 1.21 2009/08/12 04:48:03 dholland Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,12 +46,16 @@ #if 0 static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: update.c,v 1.20 2009/05/26 00:00:56 dholland Exp $"); +__RCSID("$NetBSD: update.c,v 1.21 2009/08/12 04:48:03 dholland Exp $"); #endif #endif /* not lint */ #include "include.h" +static int next_plane(void); +static int too_close(const PLANE *p1, const PLANE *p2, int); +static int dir_deg(int); + /* ARGSUSED */ void update(int dummy __unused) @@ -274,7 +278,7 @@ number(int l) return (-1); } -int +static int next_plane(void) { static int last_plane = -1; @@ -390,7 +394,7 @@ findplane(int n) return (NULL); } -int +static int too_close(const PLANE *p1, const PLANE *p2, int dist) { if (ABS(p1->altitude - p2->altitude) <= dist && @@ -401,7 +405,7 @@ too_close(const PLANE *p1, const PLANE *p2, int dist) return (0); } -int +static int dir_deg(int d) { switch (d) { |