From 2546fc394347548583c7bdcc15c23c7b17df6ea4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:29 +0200 Subject: [PATCH] screen_auth() returns result screen_auth() returns an int, and its result is actually being used. Only the "return" was missing in its implementation. Return _screen_auth()'s result. --- src/screen_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screen_utils.c b/src/screen_utils.c index a1cdedb..80a1b3f 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -139,9 +139,10 @@ _screen_auth(mpdclient_t *c, gint recursion) gint screen_auth(mpdclient_t *c) { - _screen_auth(c, 0); + gint ret = _screen_auth(c, 0); mpdclient_update(c); curs_set(0); + return ret; } /* query user for a string and find it in a list window */ -- 2.30.2