From ec317e78c1fa194eb8cba17358952dbd21a45c1a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 17 Aug 2011 16:12:48 +0200 Subject: [PATCH] use 'break' instead of 'return', the generated code will end up in a switch statement --- src/cmdparse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmdparse.y b/src/cmdparse.y index 891f876a..c38f660f 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -735,13 +735,13 @@ move: free($3); if (!output) - return 0; + break; /* get visible workspace on output */ Con *ws = NULL; GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child)); if (!ws) - return 0; + break; TAILQ_FOREACH(current, &owindows, owindows) { printf("matching: %p / %s\n", current->con, current->con->name);