From 34a193a606ce61f7d84e4417b198a5a05b9c8e38 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 20 May 2010 16:40:40 +0200 Subject: more portable way of returning the function pointer in the dynloader --- tests/library/test_loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c index a76b093..0eef9f2 100644 --- a/tests/library/test_loader.c +++ b/tests/library/test_loader.c @@ -27,7 +27,7 @@ int main( void ) { char errbuf[512]; typedef int (*multiply_by_two_func)( int ); union { multiply_by_two_func func; void *obj; } alias; - void *symbol; + WOLF_LIBRARY_FUNCPTR symbol; multiply_by_two_func func; int res = 0; @@ -43,7 +43,7 @@ int main( void ) { * casting doesn't work, see: * http://en.wikipedia.org/wiki/Dynamic_loading */ - symbol = wolf_library_get( library, "multiply_by_two", &error ); + symbol = wolf_library_get_func( library, "multiply_by_two", &error ); alias.obj = symbol; func = alias.func; -- cgit v1.2.3-54-g00ecf