summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-20 16:40:40 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-20 16:40:40 +0200
commit34a193a606ce61f7d84e4417b198a5a05b9c8e38 (patch)
tree3e32e65f996edb7cfe08d05fbb00ee9af0b2fe5b /tests
parent82c2b858633c9992ce7560a0b21f37329904a300 (diff)
downloadwolfbones-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.c4
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;