mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -38,7 +38,7 @@ get_device_type(const char *s)
|
|||
struct libinput_category *
|
||||
libinput_category_create(void)
|
||||
{
|
||||
struct libinput_category *l = xzalloc(sizeof(struct libinput_category));
|
||||
struct libinput_category *l = znew(*l);
|
||||
libinput_category_init(l);
|
||||
wl_list_insert(&rc.libinput_categories, &l->link);
|
||||
return l;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue