fixed some build issues from last commit

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401389
This commit is contained in:
David Anderson 2007-08-29 02:36:41 +00:00
parent f145178fc0
commit 97196e70be
2 changed files with 2 additions and 3 deletions

View File

@ -1328,7 +1328,6 @@ bool CPluginManager::RunSecondPass(CPlugin *pPlugin, char *error, size_t maxleng
void CPluginManager::AddCoreNativesToPlugin(CPlugin *pPlugin)
{
IPluginContext *pContext = pPlugin->GetBaseContext();
sp_context_t *ctx = pContext->GetContext();
uint32_t natives = pContext->GetNativesNum();

View File

@ -642,7 +642,7 @@ int BaseContext::BindNative(const sp_nativeinfo_t *native)
return SP_ERROR_NONE;
}
int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native)
int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC func)
{
int err;
sp_native_t *native;
@ -652,7 +652,7 @@ int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native)
return err;
}
ctx->natives[index].pfn = native;
ctx->natives[index].pfn = func;
ctx->natives[index].status = SP_NATIVE_BOUND;
return SP_ERROR_NONE;