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]

git-svn-id: svn://10.0.0.236/trunk@245592 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2008-02-13 11:29:56 +00:00
parent 29b61b4f80
commit be5a841716

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;