summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-07-01 16:53:52 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-07-01 16:53:52 +0200
commitdafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43 (patch)
tree81f8397d02f6b81a63455f246bc215c2f9e209fe
parentf66a36de911ca01a0b109a9a145a5b46bebdd0e1 (diff)
downloadmad-dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43.tar
mad-dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43.zip
ModuleManager: Benutze empfohlene dlsym-Syntax
-rw-r--r--src/Common/ModuleManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/ModuleManager.cpp b/src/Common/ModuleManager.cpp
index 738532f..25b0ee9 100644
--- a/src/Common/ModuleManager.cpp
+++ b/src/Common/ModuleManager.cpp
@@ -85,7 +85,8 @@ lt_dlhandle ModuleManager::loadModule(const std::string &name) {
mod = modules.insert(std::make_pair(lt_dlgetinfo(handle)->name, std::make_pair(handle, (Module*)0))).first;
}
if(!mod->second.second) {
- ModuleLoadFunc loader = (ModuleLoadFunc)lt_dlsym(mod->second.first, (name + "_create").c_str());
+ ModuleLoadFunc loader;
+ *(void**)&loader = lt_dlsym(mod->second.first, (name + "_create").c_str());
if(!loader)
return 0;