summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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;