modules: Revert mapi_register() to use ints
modinit() returns either 0 (success) or -1 (failure) so we can't check for true/false.
This commit is contained in:
parent
5902547a10
commit
5eb3d7a7c0
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
|
|||
struct mapi_mheader_av2 *mheader = (struct mapi_mheader_av2 *)(void *)mapi_version; /* see above */
|
||||
|
||||
/* XXX duplicated code :( */
|
||||
if(mheader->mapi_register && (mheader->mapi_register() == false))
|
||||
if(mheader->mapi_register && (mheader->mapi_register() == -1))
|
||||
{
|
||||
ilog(L_MAIN, "Module %s indicated failure during load.",
|
||||
mod_basename);
|
||||
|
|
Loading…
Reference in a new issue