From dafe874e8bf3c0dc3091427a4dd5b1ebfa1e5b43 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 1 Jul 2009 16:53:52 +0200 Subject: ModuleManager: Benutze empfohlene dlsym-Syntax --- src/Common/ModuleManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Common') 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; -- cgit v1.2.3