From b3feb479b8e416d419578f36d5fd4c2668949a42 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Mon, 9 Jul 2012 09:48:17 +0300 Subject: [PATCH] api/script_next.c: Rewrite with style changes --- src/api/script_next.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/api/script_next.c b/src/api/script_next.c index 1e51f9a..489a3f9 100644 --- a/src/api/script_next.c +++ b/src/api/script_next.c @@ -37,9 +37,11 @@ */ QuviBoolean quvi_script_next(quvi_t handle, QuviScriptType type) { - _quvi_t q = (_quvi_t) handle; - QuviBoolean r = QUVI_FALSE; - GSList *l = NULL; + QuviBoolean r; + GSList *l; + _quvi_t q; + + q = (_quvi_t) handle; /* If G_DISABLE_CHECKS is defined then the check is not performed. */ g_return_val_if_fail(handle != NULL, QUVI_FALSE); @@ -61,6 +63,8 @@ QuviBoolean quvi_script_next(quvi_t handle, QuviScriptType type) break; } + r = QUVI_FALSE; + switch (type) { case QUVI_SCRIPT_TYPE_PLAYLIST: @@ -91,6 +95,7 @@ QuviBoolean quvi_script_next(quvi_t handle, QuviScriptType type) : QUVI_FALSE; break; } + return (r); } -- 2.11.4.GIT