Bug 411463 - "AIX Compilation error with compiler option -qlanglvl=stdc99 for trunk build source npunix.c : mozilla/modules/plugin/samples/default/unix/npunix.c", line 556.62: 1506-068 (S) Operation between types "void*" and "void*" is not allowed" [p=shailen.n.jain@gmail.com (Shailen) r+sr=jst a1.9=schrep]

This commit is contained in:
reed@reedloden.com 2008-02-13 03:29:56 -08:00
parent 1ff4abc634
commit 20b54b4e82

View File

@ -549,7 +549,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
if (err == NPERR_NO_ERROR) {
if ((nsTable->version >> 8) > NP_VERSION_MAJOR)
err = NPERR_INCOMPATIBLE_VERSION_ERROR;
if (nsTable->size < ((void *)&nsTable->posturlnotify - (void *)nsTable))
if (nsTable->size < ((char *)&nsTable->posturlnotify - (char *)nsTable))
err = NPERR_INVALID_FUNCTABLE_ERROR;
if (pluginFuncs->size < sizeof(NPPluginFuncs))
err = NPERR_INVALID_FUNCTABLE_ERROR;
@ -587,7 +587,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
gNetscapeFuncs.setvalue = nsTable->setvalue;
gNetscapeFuncs.posturlnotify = nsTable->posturlnotify;
if (nsTable->size >= ((void *)&nsTable->setexception - (void *)nsTable))
if (nsTable->size >= ((char *)&nsTable->setexception - (char *)nsTable))
{
gNetscapeFuncs.invalidaterect = nsTable->invalidaterect;
gNetscapeFuncs.invalidateregion = nsTable->invalidateregion;
@ -637,7 +637,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
gNetscapeFuncs.setexception = NULL;
}
if (nsTable->size >=
((void *)&nsTable->poppopupsenabledstate - (void *)nsTable))
((char *)&nsTable->poppopupsenabledstate - (char *)nsTable))
{
gNetscapeFuncs.pushpopupsenabledstate = nsTable->pushpopupsenabledstate;
gNetscapeFuncs.poppopupsenabledstate = nsTable->poppopupsenabledstate;