From 8e24aaa3c6959089f0459e03f01c7b1f638d6027 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Thu, 28 Dec 2017 16:28:19 +0100 Subject: style: fix sizeof() calls without parentheses --- examples/screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/screenshot.c b/examples/screenshot.c index a887d1d7..66e5c75c 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -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); -- cgit v1.2.3