From e4f438934126d187ccfdf78b5c91bda612521dab Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 6 Dec 2013 14:47:09 +1000 Subject: [PATCH] Move zalloc() up to libinput-util.h Signed-off-by: Peter Hutterer --- src/evdev.h | 6 ------ src/libinput-util.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/evdev.h b/src/evdev.h index 1a42bd8e..dde0f1b6 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -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 { diff --git a/src/libinput-util.h b/src/libinput-util.h index a9efb499..45549e05 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -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 */