summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-22 22:33:35 +0000
committerdholland <dholland@NetBSD.org>2014-03-22 22:33:35 +0000
commit767da0d3e196c89c429ed4f929a2442be58e2220 (patch)
tree1944efe2b7ce48696aaed342eb575e5fd747c49f /atc
parentee60084f8404ff5f5b77f76ec844c5dffa5ced63 (diff)
downloadbsdgames-darwin-767da0d3e196c89c429ed4f929a2442be58e2220.tar.gz
bsdgames-darwin-767da0d3e196c89c429ed4f929a2442be58e2220.tar.zst
bsdgames-darwin-767da0d3e196c89c429ed4f929a2442be58e2220.zip
woops, more of previous.
Diffstat (limited to 'atc')
-rw-r--r--atc/graphics.c10
-rw-r--r--atc/struct.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/atc/graphics.c b/atc/graphics.c
index b2bcafca..66a4bddc 100644
--- a/atc/graphics.c
+++ b/atc/graphics.c
@@ -1,4 +1,4 @@
-/* $NetBSD: graphics.c,v 1.17 2014/03/22 22:24:21 dholland Exp $ */
+/* $NetBSD: graphics.c,v 1.18 2014/03/22 22:33:35 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: graphics.c,v 1.17 2014/03/22 22:24:21 dholland Exp $");
+__RCSID("$NetBSD: graphics.c,v 1.18 2014/03/22 22:33:35 dholland Exp $");
#endif
#endif /* not lint */
@@ -166,10 +166,10 @@ setup_screen(const C_SCREEN *scp)
* through beacons and exit points.
*/
str[0] = C_LINE;
- for (i = 0; i < scp->num_lines; i++) {
+ for (iu = 0; iu < scp->num_lines; iu++) {
str[1] = ' ';
- draw_line(radar, scp->line[i].p1.x, scp->line[i].p1.y,
- scp->line[i].p2.x, scp->line[i].p2.y, str);
+ draw_line(radar, scp->line[iu].p1.x, scp->line[iu].p1.y,
+ scp->line[iu].p2.x, scp->line[iu].p2.y, str);
}
str[0] = C_TOPBOTTOM;
diff --git a/atc/struct.h b/atc/struct.h
index 39374dac..5ce9a2b3 100644
--- a/atc/struct.h
+++ b/atc/struct.h
@@ -1,4 +1,4 @@
-/* $NetBSD: struct.h,v 1.7 2014/03/22 22:24:21 dholland Exp $ */
+/* $NetBSD: struct.h,v 1.8 2014/03/22 22:33:35 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -61,7 +61,7 @@ typedef struct {
int update_secs;
int newplane_time;
unsigned num_exits;
- int num_lines;
+ unsigned num_lines;
unsigned num_beacons;
unsigned num_airports;
EXIT *exit;