Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/atc woops, more of previous.



details:   https://anonhg.NetBSD.org/src/rev/e0cdf573e2c4
branches:  trunk
changeset: 327980:e0cdf573e2c4
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 22 22:33:35 2014 +0000

description:
woops, more of previous.

diffstat:

 games/atc/graphics.c |  10 +++++-----
 games/atc/struct.h   |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r 0a4a67422210 -r e0cdf573e2c4 games/atc/graphics.c
--- a/games/atc/graphics.c      Sat Mar 22 22:24:21 2014 +0000
+++ b/games/atc/graphics.c      Sat Mar 22 22:33:35 2014 +0000
@@ -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 @@
         * 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 -r 0a4a67422210 -r e0cdf573e2c4 games/atc/struct.h
--- a/games/atc/struct.h        Sat Mar 22 22:24:21 2014 +0000
+++ b/games/atc/struct.h        Sat Mar 22 22:33:35 2014 +0000
@@ -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 @@
        int     update_secs;
        int     newplane_time;
        unsigned num_exits;
-       int     num_lines;
+       unsigned num_lines;
        unsigned num_beacons;
        unsigned num_airports;
        EXIT    *exit;



Home | Main Index | Thread Index | Old Index