* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
* ---------------------------------------------------
*/
-/* $Core: libIRCDdynamic */
+/* $Core */
#include "inspircd.h"
#include "dynamic.h"
#include <dlfcn.h>
#endif
-DLLManager::DLLManager(InspIRCd*, const char *fname)
+DLLManager::DLLManager(const char *fname)
{
err = NULL;
h = dlopen(fname, RTLD_NOW|RTLD_LOCAL);
if (!h)
{
- err = (char*)dlerror();
+ err = dlerror();
return;
}
}
* try extract a symbol from the library
* get any error message is there is any
*/
-
+
if (h)
{
dlerror(); // clear value
*v = dlsym(h, sym_name);
- err = (char*)dlerror();
+ err = dlerror();
if (!*v || err)
return false;
}
-
+
/* succeeded :) */
return true;
}