From 85d184f77a776f70bfa9dd79085c16ec1773e319 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Fri, 29 Jun 2007 20:36:07 +0000 Subject: Cosmetics: white space --- Makefile | 2 +- dlfcn.c | 4 ++-- test.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) 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 ) { -- cgit v1.2.3-55-g6feb