aboutsummaryrefslogtreecommitdiff
path: root/examples/gamma-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gamma-control.c')
-rw-r--r--examples/gamma-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gamma-control.c b/examples/gamma-control.c
index 9fa00ce3..69d1cd75 100644
--- a/examples/gamma-control.c
+++ b/examples/gamma-control.c
@@ -87,7 +87,7 @@ static const struct zwlr_gamma_control_v1_listener gamma_control_listener = {
static void registry_handle_global(void *data, struct wl_registry *registry,
uint32_t name, const char *interface, uint32_t version) {
if (strcmp(interface, wl_output_interface.name) == 0) {
- struct output *output = calloc(1, sizeof(struct output));
+ struct output *output = calloc(1, sizeof(*output));
output->wl_output = wl_registry_bind(registry, name,
&wl_output_interface, 1);
wl_list_insert(&outputs, &output->link);