style: fix sizeof() calls without parentheses

This commit is contained in:
Dominique Martinet 2017-12-28 16:28:19 +01:00
parent da3ef46daf
commit 8e24aaa3c6
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ static void handle_global(void *data, struct wl_registry *registry,
static struct screenshooter_output *output;
if (strcmp(interface, "wl_output") == 0) {
output = calloc(1, sizeof *output);
output = calloc(1, sizeof(*output));
output->output = wl_registry_bind(registry, name, &wl_output_interface,
1);
wl_list_insert(&output_list, &output->link);