style: include brackets for if/while/for, even if it's a single statement

This commit is contained in:
Johannes Schramm 2018-01-21 16:28:21 +01:00
parent 1fbd6cb0f0
commit dcc743047b
7 changed files with 39 additions and 15 deletions

View file

@ -64,8 +64,12 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
odata->x_offs += odata->x_vel * seconds;
odata->y_offs += odata->y_vel * seconds;
if (odata->x_offs > 128) odata->x_offs = 0;
if (odata->y_offs > 128) odata->y_offs = 0;
if (odata->x_offs > 128) {
odata->x_offs = 0;
}
if (odata->y_offs > 128) {
odata->y_offs = 0;
}
}
static void handle_output_add(struct output_state *output) {