Fix test entry point declaration 22/134422/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 16 Jun 2017 09:04:57 +0000 (11:04 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 16 Jun 2017 09:23:02 +0000 (11:23 +0200)
Change-Id: I4930178d3bba1ce70e8afe9ee8333e6078e84c21

src/core/module.h

index 931a4e59f712cd307ea6a2de4b18d183689efe61..2950236ef6b75e7ff78b972f9771de5030bb038f 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef ENABLE_TESTS
 #define TEST_ENTRY_POINT(func) \
-       typeof(func) CONCAT(FAULTD_MODNAME_T, _ ## func) = func
+       typeof(func) (*CONCAT(FAULTD_MODNAME_T, _ ## func)) = func
 #else
 #define TEST_ENTRY_POINT(func)
 #endif