common: Add znew/znew_n() macros

This commit is contained in:
John Lindgren 2022-09-18 15:22:26 -04:00
parent da57483961
commit a54d378e6c
26 changed files with 47 additions and 47 deletions

View file

@ -125,7 +125,7 @@ new_output_notify(struct wl_listener *listener, void *data)
wlr_output_commit(wlr_output);
struct output *output = xzalloc(sizeof(struct output));
struct output *output = znew(*output);
output->wlr_output = wlr_output;
wlr_output->data = output;
output->server = server;