summaryrefslogtreecommitdiffstats
path: root/atc/update.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-22 22:24:21 +0000
committerdholland <dholland@NetBSD.org>2014-03-22 22:24:21 +0000
commitee60084f8404ff5f5b77f76ec844c5dffa5ced63 (patch)
tree754555150c51721e2d3fc7273daaa7bac58caf12 /atc/update.c
parent9d76f01669b1a4c02ade0e003744dfd853e079f5 (diff)
downloadbsdgames-darwin-ee60084f8404ff5f5b77f76ec844c5dffa5ced63.tar.gz
bsdgames-darwin-ee60084f8404ff5f5b77f76ec844c5dffa5ced63.tar.zst
bsdgames-darwin-ee60084f8404ff5f5b77f76ec844c5dffa5ced63.zip
Make some things unsigned that should be (why would we need e.g. a
negative number of airports?) and remove some related bogus casts.
Diffstat (limited to 'atc/update.c')
-rw-r--r--atc/update.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/atc/update.c b/atc/update.c
index 197077ff..59c6a24d 100644
--- a/atc/update.c
+++ b/atc/update.c
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.22 2011/02/15 08:25:25 is Exp $ */
+/* $NetBSD: update.c,v 1.23 2014/03/22 22:24:21 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.22 2011/02/15 08:25:25 is Exp $");
+__RCSID("$NetBSD: update.c,v 1.23 2014/03/22 22:24:21 dholland Exp $");
#endif
#endif /* not lint */
@@ -60,7 +60,8 @@ static int dir_deg(int);
void
update(int dummy __unused)
{
- int i, dir_diff, unclean;
+ int dir_diff, unclean;
+ unsigned i;
PLANE *pp, *p1, *p2;
#ifdef SYSV
@@ -311,7 +312,8 @@ int
addplane(void)
{
PLANE p, *pp, *p1;
- int i, num_starts, isclose, rnd, rnd2, pnum;
+ int isclose, pnum;
+ unsigned num_starts, rnd, rnd2, i;
(void)memset(&p, 0, sizeof (p));