diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2014-11-19 17:18:36 -0800 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-11-28 15:57:55 +0200 |
commit | 2cd82b7692224bc6fdbe8965465df5029aaeddc9 (patch) | |
tree | 67da1bdcacf62f0f0cd57bca2d1bd7896620cdcf /tests/weston-test-client-helper.c | |
parent | 22ea306ce2e49807832317dd4ea111f2c5b9f47d (diff) | |
download | weston-2cd82b7692224bc6fdbe8965465df5029aaeddc9.tar.gz |
tests: Use one shared xzalloc implementation
Since this is an inlined function, move it to a common header file.
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
Diffstat (limited to 'tests/weston-test-client-helper.c')
-rw-r--r-- | tests/weston-test-client-helper.c | 11 |
1 files changed, 0 insertions, 11 deletions
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) { |