diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-05-20 16:40:40 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-05-20 16:40:40 +0200 |
commit | 34a193a606ce61f7d84e4417b198a5a05b9c8e38 (patch) | |
tree | 3e32e65f996edb7cfe08d05fbb00ee9af0b2fe5b /tests | |
parent | 82c2b858633c9992ce7560a0b21f37329904a300 (diff) | |
download | wolfbones-34a193a606ce61f7d84e4417b198a5a05b9c8e38.tar.gz wolfbones-34a193a606ce61f7d84e4417b198a5a05b9c8e38.tar.bz2 |
more portable way of returning the function pointer in the dynloader
Diffstat (limited to 'tests')
-rw-r--r-- | tests/library/test_loader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |