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

@ -307,8 +307,9 @@ size_t wlr_session_find_gpus(struct wlr_session *session,
}
const char *seat = udev_device_get_property_value(dev, "ID_SEAT");
if (!seat)
if (!seat) {
seat = "seat0";
}
if (session->seat[0] && strcmp(session->seat, seat) != 0) {
udev_device_unref(dev);
continue;