diff options
| author | Adam <Adam@anope.org> | 2010-09-07 18:39:57 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-07 18:39:57 -0400 |
| commit | 3a97d196f9744a75a715cf3bc8bd0d36683e4ece (patch) | |
| tree | 2774f41c34fdd2e5ce5a84262de2b42f665e5382 /src/modules.c | |
| parent | 7dfc8e8ee8f5355429763eac70fe694bf947eca3 (diff) | |
Fixed make strict build and cleaned up some warnings
Diffstat (limited to 'src/modules.c')
| -rw-r--r-- | src/modules.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.c b/src/modules.c index 6ce4d955a..7e7061647 100644 --- a/src/modules.c +++ b/src/modules.c @@ -299,7 +299,7 @@ void modules_unload_all(boolean fini, boolean unload_proto) } if ((ano_modclose(mh->m->handle)) != 0) - alog(ano_moderr()); + alog("%s", ano_moderr()); else delModule(mh->m); } else { @@ -641,7 +641,7 @@ int loadModule(Module * m, User * u) ano_modclearerr(); m->handle = ano_modopen(m->filename); if ( m->handle == NULL && (err = ano_moderr()) != NULL) { - alog(err); + alog("%s", err); return MOD_ERR_NOLOAD; } ano_modclearerr(); @@ -760,7 +760,7 @@ int unloadModule(Module * m, User * u) } if ((ano_modclose(m->handle)) != 0) { - alog(ano_moderr()); + alog("%s", ano_moderr()); if (u) { notice_lang(s_OperServ, u, OPER_MODULE_REMOVE_FAIL, m->name); } |
