diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/DynamicLoader.cxx | 2 | ||||
-rw-r--r-- | Source/kwsys/testDynamicLoader.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/DynamicLoader.cxx b/Source/kwsys/DynamicLoader.cxx index cc6a1d5..2bf2a0d 100644 --- a/Source/kwsys/DynamicLoader.cxx +++ b/Source/kwsys/DynamicLoader.cxx @@ -305,7 +305,7 @@ int DynamicLoader::CloseLibrary(LibHandle lib) if (lib) { // The function dlclose() returns 0 on success, and non-zero on error. - return !(int)dlclose(lib); + return !dlclose(lib); } // else return 0; diff --git a/Source/kwsys/testDynamicLoader.cxx b/Source/kwsys/testDynamicLoader.cxx index 23a422d..9a2e307 100644 --- a/Source/kwsys/testDynamicLoader.cxx +++ b/Source/kwsys/testDynamicLoader.cxx @@ -89,7 +89,9 @@ int main(int , char *[]) kwsys_stl::string libname = GetLibName("testDynload"); res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1); res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderFunction",1,1,1); + res += TestDynamicLoader(libname.c_str(), "_TestDynamicLoaderFunction",1,0,1); res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderData",1,1,1); + res += TestDynamicLoader(libname.c_str(), "_TestDynamicLoaderData",1,0,1); return res; } |