diff options
author | Silvio Traversaro <silvio@traversaro.it> | 2021-02-24 09:54:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 09:54:51 +0100 |
commit | 522c301ec366e9b42205ae21617780d37cc0e9f0 (patch) | |
tree | be6641139c2a09b59eb66bf92645be9d6b18241d /tests/test.c | |
parent | 3ec513f9d9fec0cf52aa7e2f2050112499cac581 (diff) | |
parent | 9e40646cf3a7d0817b2298f915399a128fcb4d27 (diff) | |
download | dlfcn-win32-1.3.0.tar.gz dlfcn-win32-1.3.0.tar.bz2 dlfcn-win32-1.3.0.zip |
Merge pull request #95 from pali/masterv1.3.0
Various fixes
Diffstat (limited to 'tests/test.c')
-rw-r--r-- | tests/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.c b/tests/test.c index 132ede6..1d0d437 100644 --- a/tests/test.c +++ b/tests/test.c | |||
@@ -342,7 +342,7 @@ int main() | |||
342 | *(void **) (&fwrite_local) = dlsym( global, "fwrite" ); | 342 | *(void **) (&fwrite_local) = dlsym( global, "fwrite" ); |
343 | if (!fwrite_local) | 343 | if (!fwrite_local) |
344 | { | 344 | { |
345 | error = dlerror(); | 345 | error = dlerror( ); |
346 | printf("ERROR\tCould not get symbol from global handle: %s\n", | 346 | printf("ERROR\tCould not get symbol from global handle: %s\n", |
347 | error ? error : ""); | 347 | error ? error : ""); |
348 | CLOSE_LIB; | 348 | CLOSE_LIB; |
@@ -360,7 +360,7 @@ int main() | |||
360 | *(void **) (&fputs_default) = dlsym( RTLD_DEFAULT, "fputs" ); | 360 | *(void **) (&fputs_default) = dlsym( RTLD_DEFAULT, "fputs" ); |
361 | if (!fputs_default) | 361 | if (!fputs_default) |
362 | { | 362 | { |
363 | error = dlerror(); | 363 | error = dlerror( ); |
364 | printf("ERROR\tCould not get symbol from default handle: %s\n", | 364 | printf("ERROR\tCould not get symbol from default handle: %s\n", |
365 | error ? error : ""); | 365 | error ? error : ""); |
366 | CLOSE_LIB; | 366 | CLOSE_LIB; |
@@ -623,7 +623,7 @@ int main() | |||
623 | *(void **) (&function) = dlsym( global, "fwrite" ); | 623 | *(void **) (&function) = dlsym( global, "fwrite" ); |
624 | if (!function) | 624 | if (!function) |
625 | { | 625 | { |
626 | error = dlerror(); | 626 | error = dlerror( ); |
627 | printf("ERROR\tCould not get symbol from global handle: %s\n", | 627 | printf("ERROR\tCould not get symbol from global handle: %s\n", |
628 | error ? error : ""); | 628 | error ? error : ""); |
629 | CLOSE_LIB; | 629 | CLOSE_LIB; |
@@ -659,7 +659,7 @@ int main() | |||
659 | *(void **) (&function) = dlsym( global, "function3" ); | 659 | *(void **) (&function) = dlsym( global, "function3" ); |
660 | if (!function) | 660 | if (!function) |
661 | { | 661 | { |
662 | error = dlerror(); | 662 | error = dlerror( ); |
663 | printf("ERROR\tCould not get symbol from global handle: %s\n", | 663 | printf("ERROR\tCould not get symbol from global handle: %s\n", |
664 | error ? error : ""); | 664 | error ? error : ""); |
665 | CLOSE_LIB; | 665 | CLOSE_LIB; |