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:
staticfox 2016-04-03 20:14:36 -04:00
parent 5902547a10
commit 5eb3d7a7c0

View file

@ -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);