diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-26 01:41:39 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-26 01:41:39 +0000 |
commit | c5b9eaeda030638a6fbd59396f7ad61baaf70fad (patch) | |
tree | fd7fa9e2782d1e54c02fd999dbf5576c81af4376 /src/modulemanager.cpp | |
parent | 90f6431603714f3c2abbe44550bca8824bb8bbe6 (diff) |
Various fixes for compiling under Windows.
Also updated ms_* modules to use std::vector Memo struct from earlier commit.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1797 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index f584fe3ff..7ffe35a7a 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -54,7 +54,7 @@ static int moduleCopyFile(const char *name, const char *output) if ((srcfp = mkstemp(const_cast<char *>(output))) == -1) return MOD_ERR_FILE_IO; #else - if (!mktemp(output)) + if (!mktemp(const_cast<char *>(output))) return MOD_ERR_FILE_IO; #endif @@ -152,7 +152,7 @@ int ModuleManager::LoadModule(const std::string &modname, User * u) ano_modclearerr(); - void *handle = ano_modopen(pbuf.c_str()); + ano_module_t handle = ano_modopen(pbuf.c_str()); if (handle == NULL && (err = ano_moderr()) != NULL) { alog("%s", err); @@ -253,7 +253,7 @@ void ModuleManager::DeleteModule(Module *m) { const char *err; void (*destroy_func)(Module *m); - void *handle; + ano_module_t handle; if (!m || !m->handle) /* check m is least possibly valid */ { |