chore(style): format with clang

This commit is contained in:
Jeremy Attali 2019-12-28 21:50:48 -05:00
parent 45a0da8293
commit bdc1215cae
2 changed files with 5 additions and 6 deletions

View File

@ -6,25 +6,25 @@ static int32_t lmin(int32_t a, int32_t b) { return a < b ? a : b; }
bool box_parse(struct swappy_box *box, const char *str) {
char *end = NULL;
box->x = (int32_t) strtol(str, &end, 10);
box->x = (int32_t)strtol(str, &end, 10);
if (end[0] != ',') {
return false;
}
char *next = end + 1;
box->y = (int32_t) strtol(next, &end, 10);
box->y = (int32_t)strtol(next, &end, 10);
if (end[0] != ' ') {
return false;
}
next = end + 1;
box->width = (int32_t) strtol(next, &end, 10);
box->width = (int32_t)strtol(next, &end, 10);
if (end[0] != 'x') {
return false;
}
next = end + 1;
box->height = (int32_t) strtol(next, &end, 10);
box->height = (int32_t)strtol(next, &end, 10);
if (end[0] != '\0') {
return false;
}

View File

@ -158,8 +158,7 @@ static void global_registry_handler(void *data, struct wl_registry *registry,
static void global_registry_remove_handler(void *data,
struct wl_registry *wl_registry,
uint32_t name) {
}
uint32_t name) {}
static struct wl_registry_listener registry_listener = {
.global = global_registry_handler,