aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/backend.c3
-rw-r--r--backend/headless/output.c3
2 files changed, 2 insertions, 4 deletions
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;
diff --git a/backend/headless/output.c b/backend/headless/output.c
index a6c97dec..406959b4 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -107,8 +107,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend,
struct wlr_headless_backend *backend =
headless_backend_from_backend(wlr_backend);
- struct wlr_headless_output *output =
- calloc(1, sizeof(struct wlr_headless_output));
+ struct wlr_headless_output *output = calloc(1, sizeof(*output));
if (output == NULL) {
wlr_log(WLR_ERROR, "Failed to allocate wlr_headless_output");
return NULL;