summaryrefslogtreecommitdiffstats
path: root/call
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-17 09:10:35 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 09:11:02 +0200
commitafc080bf645a0ae5dc3ad09b306fc5d805653ce5 (patch)
tree33570e68bd2aef6ea150306693a39c4c7d355a73 /call
parent6c384869373c6a1287e9523dbd092dcde4b58c0e (diff)
call: Fix warning about set but not used variable.
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -Wno-pointer-sign -MT call.o -MD -MP -MF .deps/call.Tpo -c -o call.o call.c call.c: In function ‘wrdstatw’: call.c:482:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] mv -f .deps/call.Tpo .deps/call.Po Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call')
-rw-r--r--call/call.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/call/call.c b/call/call.c
index 9977554..21fb4f5 100644
--- a/call/call.c
+++ b/call/call.c
@@ -479,7 +479,7 @@ WINDOW *opnstatw(int mode, wint * wintab, char *s, int lines, int cols)
void wrdstatw(WINDOW * win, char s[])
{
- int y, x;
+ int y;
if (win == NULL) {
printf(" %s\n", s);
@@ -487,7 +487,7 @@ void wrdstatw(WINDOW * win, char s[])
return;
}
waddstr(win, s);
- getyx(win, y, x);
+ y = getcury(win);
wmove(win, y + 1, 2);
wrefresh(win);
}