From 0d0b63801e05a329e97aa1756d1920f9f47ca134 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 10 Jan 2008 16:46:01 +0000 Subject: - screen: fix compilation error, reported on watch@PttBug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3817 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/screen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 1f015acc..5eee18e4 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -368,8 +368,8 @@ clrtoeol(void) void newwin (int nlines, int ncols, int y, int x) { - int i=0, y, x; - getyx(&y, &x); + int i=0, oy, ox; + getyx(&oy, &ox); while (nlines-- > 0) { @@ -377,7 +377,7 @@ void newwin (int nlines, int ncols, int y, int x) for (i = 0; i < ncols; i++) outc(' '); } - move(y, x); + move(oy, ox); } /** -- cgit v1.2.3