diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-25 12:40:13 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-25 19:04:57 -0600 |
commit | 1f10e69b4ccaf5ba335b4584db3c42190b45ffe6 (patch) | |
tree | 4c3f6ff93b136020ac945df2de72cba4a4f841e1 | |
parent | 922e117fc5fd03faebd8f23e127fb75d21b83f24 (diff) |
use sizeof(*pointer) instead of sizeof(struct)
-rw-r--r-- | dwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |