From: Michael Stapelberg Date: Wed, 17 Aug 2011 14:12:48 +0000 (+0200) Subject: use 'break' instead of 'return', the generated code will end up in a switch statement X-Git-Tag: 4.1~215^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec317e78c1fa194eb8cba17358952dbd21a45c1a;p=i3%2Fi3 use 'break' instead of 'return', the generated code will end up in a switch statement --- 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);