summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-03 22:04:14 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-03 22:09:15 +0200
commitc4c7c8af5d4180905f1b1401a259ec8ce3c5ac75 (patch)
tree081476998efbd147c4c29715c292c9fa46f2f301 /src/wins.c
parent5b12c236cf68a182fb8075c7ec0797c4c64fd60c (diff)
downloadcalcurse-c4c7c8af5d4180905f1b1401a259ec8ce3c5ac75.zip
Remove unused variables from wins_show().
Seen with "-Wunused-but-set-variable". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/wins.c')
-rw-r--r--src/wins.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wins.c b/src/wins.c
index 4f569b8..ca5171f 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -355,10 +355,7 @@ wins_reinit (void)
void
wins_show (WINDOW *win, char *label)
{
- int startx, starty, height, width;
-
- getbegyx (win, starty, startx);
- getmaxyx (win, height, width);
+ int width = getmaxx (win);
box (win, 0, 0);
mvwaddch (win, 2, 0, ACS_LTEE);