mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-29 05:30:40 +02:00
Move zalloc() up to libinput-util.h
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
58a33bd51c
commit
e4f4389341
2 changed files with 6 additions and 6 deletions
|
|
@ -30,12 +30,6 @@
|
|||
|
||||
#include "libinput-private.h"
|
||||
|
||||
static inline void *
|
||||
zalloc(size_t size)
|
||||
{
|
||||
return calloc(1, size);
|
||||
}
|
||||
|
||||
#define MAX_SLOTS 16
|
||||
|
||||
enum evdev_event_type {
|
||||
|
|
|
|||
|
|
@ -96,4 +96,10 @@ li_fixed_from_double(double d)
|
|||
|
||||
#define LIBINPUT_EXPORT __attribute__ ((visibility("default")))
|
||||
|
||||
static inline void *
|
||||
zalloc(size_t size)
|
||||
{
|
||||
return calloc(1, size);
|
||||
}
|
||||
|
||||
#endif /* LIBINPUT_UTIL_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue