From 67b7a08fe1578524c0d9a942cf81f7ffa6589687 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 13 Oct 2012 19:44:36 +0000 Subject: Move scratch variables of main to main, instead of having them be file-static. --- banner/banner.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'banner') 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) { -- cgit v1.2.3-56-ge451