Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/banner Move scratch variables of main to main, instead...
details: https://anonhg.NetBSD.org/src/rev/b6c4d35f1f45
branches: trunk
changeset: 782053:b6c4d35f1f45
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Oct 13 19:44:36 2012 +0000
description:
Move scratch variables of main to main, instead of having them be
file-static.
diffstat:
games/banner/banner.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 21078ce6d65a -r b6c4d35f1f45 games/banner/banner.c
--- a/games/banner/banner.c Sat Oct 13 19:42:02 2012 +0000
+++ b/games/banner/banner.c Sat Oct 13 19:44:36 2012 +0000
@@ -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 @@
#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 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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index