Cosmetics: white space
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
diff --git a/Makefile b/Makefile
index f98579a..a2735c1 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ endif
all: $(TARGETS)
dlfcn.o:
- $(CC) -o dlfcn.o -c dlfcn.c -O3 -fomit-frame-pointer
+ $(CC) -o dlfcn.o -c dlfcn.c -O3 -fomit-frame-pointer
libdl.a: dlfcn.o
ar cru libdl.a dlfcn.o
diff --git a/dlfcn.c b/dlfcn.c
index f56a262..18eaa25 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -200,7 +200,7 @@ void *dlsym( void *handle, const char *name )
if( hModule == handle )
{
int i;
-
+
for( i = 0 ; i < MAX_OBJECTS ; i++ )
{
if( global_objects[i] != 0 )
@@ -230,7 +230,7 @@ char *dlerror( void )
DWORD ret;
dwMessageId = GetLastError( );
-
+
if( dwMessageId == 0 )
return NULL;
diff --git a/test.c b/test.c
index 832c000..f45a5be 100644
--- a/test.c
+++ b/test.c
@@ -46,7 +46,7 @@ int main()
char *error;
int (*function)( void );
int ret;
-
+
library = dlopen( "testdll.dll", RTLD_GLOBAL );
if( !library )
{
@@ -55,7 +55,7 @@ int main()
}
else
printf( "Opened library globally: %p\n", library );
-
+
global = dlopen( 0, RTLD_GLOBAL );
if( !global )
{
@@ -64,7 +64,7 @@ int main()
}
else
printf( "Got global handle: %p\n", global );
-
+
function = dlsym( library, "function" );
if( !function )
{
@@ -87,7 +87,7 @@ int main()
}
else
printf( "Got symbol from global handle: %p\n", function );
-
+
if( function )
function( );
@@ -99,7 +99,7 @@ int main()
}
else
printf( "Closed library.\n" );
-
+
library = dlopen( "testdll.dll", RTLD_LOCAL );
if( !library )
{