A few compiler warnings.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6975 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2011-01-29 22:48:33 +00:00
parent c0571ae9de
commit 043e324789
6 changed files with 7 additions and 10 deletions

View File

@ -81,8 +81,7 @@ int DynamicLibrary::Load(const char* filename)
// RTLD_LOCAL: don't resolve symbols for other libraries
library = dlopen(filename, RTLD_NOW | RTLD_LOCAL);
#else
library = RTLD_SELF;
return 1;
library = dlopen(NULL, RTLD_LAZY);
#endif
DEBUG_LOG(COMMON, "DL: LoadLibrary: %s(%p)", filename, library);
@ -120,10 +119,8 @@ int DynamicLibrary::Unload()
library_file.c_str(), library);
#ifdef _WIN32
retval = FreeLibrary(library);
#elif defined __linux__
retval = dlclose(library) ? 0 : 1;
#else
return 1;
retval = dlclose(library) ? 0 : 1;
#endif
if (! retval) {