From: Max Kellermann Date: Mon, 20 Mar 2017 19:41:37 +0000 (+0100) Subject: screen: make cols and rows local X-Git-Tag: v0.27~27 X-Git-Url: https://git.tokkee.org/?p=ncmpc.git;a=commitdiff_plain;h=758546d96b07de76947bfdef71ea83d2500b51d7 screen: make cols and rows local --- 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