diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-07-01 16:53:52 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-07-01 16:53:52 +0200 |
commit | dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43 (patch) | |
tree | 81f8397d02f6b81a63455f246bc215c2f9e209fe | |
parent | f66a36de911ca01a0b109a9a145a5b46bebdd0e1 (diff) | |
download | mad-dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43.tar mad-dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43.zip |
ModuleManager: Benutze empfohlene dlsym-Syntax
-rw-r--r-- | src/Common/ModuleManager.cpp | 3 |
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; |