Commit 74b330c11c881e939c0b79e8d5fa53bdee86c479

Ramiro Polla 2008-12-09T21:17:44

Rename save_err_ptr( ) to save_err_ptr_str( ) to avoid confusion. Based on patch by Dan DuVarney.

diff --git a/dlfcn.c b/dlfcn.c
index 14eecef..e8b7223 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -157,7 +157,7 @@ static void save_err_str( const char *str )
     current_error = error_buffer;
 }
 
-static void save_err_ptr( const void *ptr )
+static void save_err_ptr_str( const void *ptr )
 {
     char ptr_buf[19]; /* 0x<pointer> up to 64 bits. */
 
@@ -189,7 +189,7 @@ void *dlopen( const char *file, int mode )
         hModule = GetModuleHandle( NULL );
 
         if( !hModule )
-            save_err_ptr( file );
+            save_err_ptr_str( file );
     }
     else
     {
@@ -250,7 +250,7 @@ int dlclose( void *handle )
     if( ret )
         global_rem( hModule );
     else
-        save_err_ptr( handle );
+        save_err_ptr_str( handle );
 
     /* dlclose's return value in inverted in relation to FreeLibrary's. */
     ret = !ret;