summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 12:40:13 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 19:04:57 -0600
commit1f10e69b4ccaf5ba335b4584db3c42190b45ffe6 (patch)
tree4c3f6ff93b136020ac945df2de72cba4a4f841e1
parent922e117fc5fd03faebd8f23e127fb75d21b83f24 (diff)
use sizeof(*pointer) instead of sizeof(struct)
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 5725bf1..c0c5c08 100644
--- a/dwl.c
+++ b/dwl.c
@@ -815,7 +815,7 @@ createlayersurface(struct wl_listener *listener, void *data)
return;
}
- layersurface = wlr_layer_surface->data = ecalloc(1, sizeof(LayerSurface));
+ layersurface = wlr_layer_surface->data = ecalloc(1, sizeof(*layersurface));
layersurface->type = LayerShell;
LISTEN(&wlr_layer_surface->surface->events.commit,
&layersurface->surface_commit, commitlayersurfacenotify);