use 'break' instead of 'return', the generated code will end up in a switch statement

next
Michael Stapelberg 2011-08-17 16:12:48 +02:00
parent 7ddba4995f
commit ec317e78c1
1 changed files with 2 additions and 2 deletions

View File

@ -735,13 +735,13 @@ move:
free($3); free($3);
if (!output) if (!output)
return 0; break;
/* get visible workspace on output */ /* get visible workspace on output */
Con *ws = NULL; Con *ws = NULL;
GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child)); GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child));
if (!ws) if (!ws)
return 0; break;
TAILQ_FOREACH(current, &owindows, owindows) { TAILQ_FOREACH(current, &owindows, owindows) {
printf("matching: %p / %s\n", current->con, current->con->name); printf("matching: %p / %s\n", current->con, current->con->name);