Move zalloc() up to libinput-util.h

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-12-06 14:47:09 +10:00 committed by Jonas Ådahl
parent 58a33bd51c
commit e4f4389341
2 changed files with 6 additions and 6 deletions

View file

@ -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 {

View file

@ -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 */