From 758546d96b07de76947bfdef71ea83d2500b51d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Mar 2017 20:41:37 +0100 Subject: [PATCH] screen: make cols and rows local --- src/screen.c | 51 +++++++++++++++++++++++---------------------------- src/screen.h | 2 -- 2 files changed, 23 insertions(+), 30 deletions(-) diff --git a/src/screen.c b/src/screen.c index a8c80bc..0d242de 100644 --- a/src/screen.c +++ b/src/screen.c @@ -55,8 +55,8 @@ static const GTime SCREEN_WELCOME_TIME = 10; #endif /* minimum window size */ -static const int SCREEN_MIN_COLS = 14; -static const int SCREEN_MIN_ROWS = 5; +static const unsigned SCREEN_MIN_COLS = 14; +static const unsigned SCREEN_MIN_ROWS = 5; /* screens */ @@ -208,37 +208,35 @@ screen_exit(void) void screen_resize(struct mpdclient *c) { - if (COLS