aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.c b/test.c
index 832c000..f45a5be 100644
--- a/test.c
+++ b/test.c
@@ -46,7 +46,7 @@ int main()
46 char *error; 46 char *error;
47 int (*function)( void ); 47 int (*function)( void );
48 int ret; 48 int ret;
49 49
50 library = dlopen( "testdll.dll", RTLD_GLOBAL ); 50 library = dlopen( "testdll.dll", RTLD_GLOBAL );
51 if( !library ) 51 if( !library )
52 { 52 {
@@ -55,7 +55,7 @@ int main()
55 } 55 }
56 else 56 else
57 printf( "Opened library globally: %p\n", library ); 57 printf( "Opened library globally: %p\n", library );
58 58
59 global = dlopen( 0, RTLD_GLOBAL ); 59 global = dlopen( 0, RTLD_GLOBAL );
60 if( !global ) 60 if( !global )
61 { 61 {
@@ -64,7 +64,7 @@ int main()
64 } 64 }
65 else 65 else
66 printf( "Got global handle: %p\n", global ); 66 printf( "Got global handle: %p\n", global );
67 67
68 function = dlsym( library, "function" ); 68 function = dlsym( library, "function" );
69 if( !function ) 69 if( !function )
70 { 70 {
@@ -87,7 +87,7 @@ int main()
87 } 87 }
88 else 88 else
89 printf( "Got symbol from global handle: %p\n", function ); 89 printf( "Got symbol from global handle: %p\n", function );
90 90
91 if( function ) 91 if( function )
92 function( ); 92 function( );
93 93
@@ -99,7 +99,7 @@ int main()
99 } 99 }
100 else 100 else
101 printf( "Closed library.\n" ); 101 printf( "Closed library.\n" );
102 102
103 library = dlopen( "testdll.dll", RTLD_LOCAL ); 103 library = dlopen( "testdll.dll", RTLD_LOCAL );
104 if( !library ) 104 if( !library )
105 { 105 {