From 1b0694b79481643cb456d03e1be50a1b4f6ca591 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 3 Oct 2023 01:51:07 -0400 Subject: treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical --- backend/headless/backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/headless/backend.c') diff --git a/backend/headless/backend.c b/backend/headless/backend.c index f0cde0c7..8ab7d039 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -66,8 +66,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { struct wlr_backend *wlr_headless_backend_create(struct wl_display *display) { wlr_log(WLR_INFO, "Creating headless backend"); - struct wlr_headless_backend *backend = - calloc(1, sizeof(struct wlr_headless_backend)); + struct wlr_headless_backend *backend = calloc(1, sizeof(*backend)); if (!backend) { wlr_log(WLR_ERROR, "Failed to allocate wlr_headless_backend"); return NULL; -- cgit v1.2.3