commit e2d2f9c1df9ab283def9cb6052acd4c979ae271a
parent 27e5249bff9224d5c7dac777aa9972b1a7aafc0f
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 28 Jun 2016 15:02:13 +0200
Move an utility function to utility file.
Diffstat:
3 files changed, 8 insertions(+), 16 deletions(-)
diff --git a/src/test_ssol_device.c b/src/test_ssol_device.c
@@ -18,14 +18,6 @@
#include <rsys/logger.h>
-static void
-log_stream(const char* msg, void* ctx)
-{
- ASSERT(msg);
- (void)msg, (void)ctx;
- printf("%s\n", msg);
-}
-
int
main(int argc, char** argv)
{
diff --git a/src/test_ssol_shape.c b/src/test_ssol_shape.c
@@ -18,14 +18,6 @@
#include <rsys/logger.h>
-static void
-log_stream(const char* msg, void* ctx)
-{
- ASSERT(msg);
- (void) msg, (void) ctx;
- printf("%s\n", msg);
-}
-
/*******************************************************************************
* Box
******************************************************************************/
diff --git a/src/test_ssol_utils.h b/src/test_ssol_utils.h
@@ -37,6 +37,14 @@
#include <stdio.h>
static void
+log_stream(const char* msg, void* ctx)
+{
+ ASSERT(msg);
+ (void) msg, (void) ctx;
+ printf("%s\n", msg);
+}
+
+static void
check_memory_allocator(struct mem_allocator* allocator)
{
if(MEM_ALLOCATED_SIZE(allocator)) {