From 2cbaa284bf7f8579c16c06245726b4c208591b24 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 20 May 2005 22:34:12 +0000 Subject: Removed stupid consts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1468 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dynamic.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 2e787f341..c26df56b2 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -29,7 +29,7 @@ using namespace std; #include "inspstring.h" #include "helperfuncs.h" -DLLManager::DLLManager(const char *fname) +DLLManager::DLLManager(char *fname) { #ifdef STATIC_LINK this->staticname[0] = '\0'; @@ -50,7 +50,7 @@ DLLManager::DLLManager(const char *fname) // Try to open the library now and get any error message. h = dlopen( fname, RTLD_NOW ); - err = dlerror(); + err = (char*)dlerror(); #endif } @@ -67,7 +67,7 @@ DLLManager::~DLLManager() #ifdef STATIC_LINK -bool DLLManager::GetSymbol(initfunc* &v, const char *sym_name) +bool DLLManager::GetSymbol(initfunc* &v, char *sym_name) { log(DEBUG,"Symbol search..."); for (int j = 0; modsyms[j].name; j++) @@ -86,7 +86,7 @@ bool DLLManager::GetSymbol(initfunc* &v, const char *sym_name) #else -bool DLLManager::GetSymbol(void **v, const char *sym_name) +bool DLLManager::GetSymbol(void **v, char *sym_name) { // try extract a symbol from the library // get any error message is there is any @@ -94,7 +94,7 @@ bool DLLManager::GetSymbol(void **v, const char *sym_name) if(h != 0) { *v = dlsym( h, sym_name ); - err = dlerror(); + err = (char*)dlerror(); if( err == 0 ) return true; else @@ -108,7 +108,7 @@ bool DLLManager::GetSymbol(void **v, const char *sym_name) #endif -DLLFactoryBase::DLLFactoryBase(const char *fname, const char *factory) : DLLManager(fname) +DLLFactoryBase::DLLFactoryBase(char *fname, char *factory) : DLLManager(fname) { // try get the factory function if there is no error yet -- cgit v1.2.3