Module Name:    src
Committed By:   dholland
Date:           Sat Oct 13 19:44:36 UTC 2012

Modified Files:
        src/games/banner: banner.c

Log Message:
Move scratch variables of main to main, instead of having them be
file-static.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/games/banner/banner.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/banner/banner.c
diff -u src/games/banner/banner.c:1.20 src/games/banner/banner.c:1.21
--- src/games/banner/banner.c:1.20	Sun Feb 26 21:06:59 2012
+++ src/games/banner/banner.c	Sat Oct 13 19:44:36 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: banner.c,v 1.20 2012/02/26 21:06:59 wiz Exp $	*/
+/*	$NetBSD: banner.c,v 1.21 2012/10/13 19:44:36 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)banner.c	8.4 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: banner.c,v 1.20 2012/02/26 21:06:59 wiz Exp $");
+__RCSID("$NetBSD: banner.c,v 1.21 2012/10/13 19:44:36 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -1022,7 +1022,7 @@ static const unsigned char data_table[NB
 static char line[DWIDTH];
 static char message[MAXMSG];
 static char print[DWIDTH];
-static int debug, i, j, linen, max, nchars, pc, term, trace, x, y;
+static int debug, linen, max, nchars, pc, term, trace;
 static int width = DWIDTH;	/* -w option: scrunch letters to 80 columns */
 
 __dead static void
@@ -1035,6 +1035,9 @@ int
 main(int argc, char *argv[])
 { 
 	int ch;
+	int i, j, x, y;
+
+	x = y = 0;
 
 	while ((ch = getopt(argc, argv, "w:td")) != -1)
 		switch (ch) {

Reply via email to