diff --git a/tests/presentation-test.c b/tests/presentation-test.c index f97e5b36..59cca8e1 100644 --- a/tests/presentation-test.c +++ b/tests/presentation-test.c @@ -31,17 +31,6 @@ #include "weston-test-client-helper.h" #include "presentation_timing-client-protocol.h" -static inline void * -xzalloc(size_t size) -{ - void *p; - - p = calloc(1, size); - assert(p); - - return p; -} - static struct presentation * get_presentation(struct client *client) { diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index eadc29b9..e374a964 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -32,17 +32,6 @@ #include "../shared/os-compatibility.h" #include "weston-test-client-helper.h" -static inline void * -xzalloc(size_t size) -{ - void *p; - - p = calloc(1, size); - assert(p); - - return p; -} - int surface_contains(struct surface *surface, int x, int y) { diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h index 684afc6f..2cf3d8f2 100644 --- a/tests/weston-test-client-helper.h +++ b/tests/weston-test-client-helper.h @@ -101,6 +101,17 @@ struct surface { void *data; }; +static inline void * +xzalloc(size_t size) +{ + void *p; + + p = calloc(1, size); + assert(p); + + return p; +} + struct client * client_create(int x, int y, int width, int height);