mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
style: fix sizeof() calls without parentheses
This commit is contained in:
parent
da3ef46daf
commit
8e24aaa3c6
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue