diff options
author | dholland <dholland@NetBSD.org> | 2012-10-13 19:44:36 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-10-13 19:44:36 +0000 |
commit | 67b7a08fe1578524c0d9a942cf81f7ffa6589687 (patch) | |
tree | 830a762fa6e35fd73a03f9f94c729500e9431011 /banner | |
parent | bca7b3f7765b40e40d616f50ea26a86e9ffec28c (diff) | |
download | bsdgames-darwin-67b7a08fe1578524c0d9a942cf81f7ffa6589687.tar.gz bsdgames-darwin-67b7a08fe1578524c0d9a942cf81f7ffa6589687.tar.zst bsdgames-darwin-67b7a08fe1578524c0d9a942cf81f7ffa6589687.zip |
Move scratch variables of main to main, instead of having them be
file-static.
Diffstat (limited to 'banner')
-rw-r--r-- | banner/banner.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/banner/banner.c b/banner/banner.c index 603c9f10..5861b50f 100644 --- a/banner/banner.c +++ b/banner/banner.c @@ -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, 1993, 1994\ #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[NBYTES] = { 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) { |