diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-26 17:53:41 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-26 17:53:41 -0200 |
commit | 1a750c272683fab37cc7cd4327ccefdfa39faf85 (patch) | |
tree | 23c973ca975ec853807032e3bb1eca58422f31ce /plugin/common/npunix.c | |
parent | 549335c473370f8a243be79387577306e525f144 (diff) |
Correct make distcheck and most sparse warnings.
Only remaining sparse warning is about no previous definition for
the function vectors declared in Xtrans/Xtranssock.c.
Also, use only one .gitignore file, instead of one per directory.
Diffstat (limited to 'plugin/common/npunix.c')
-rw-r--r-- | plugin/common/npunix.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugin/common/npunix.c b/plugin/common/npunix.c index bedd861..d2b5338 100644 --- a/plugin/common/npunix.c +++ b/plugin/common/npunix.c @@ -147,7 +147,7 @@ void NPN_ReloadPlugins(NPBool reloadPages) CallNPN_ReloadPluginsProc(gNetscapeFuncs.reloadplugins, reloadPages); } -JRIEnv* NPN_GetJavaEnv() +JRIEnv* NPN_GetJavaEnv(void) { return CallNPN_GetJavaEnvProc(gNetscapeFuncs.getJavaEnv); } @@ -170,7 +170,7 @@ jref NPN_GetJavaPeer(NPP instance) * ***********************************************************************/ -NPError +static NPError Private_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved) { @@ -180,14 +180,14 @@ Private_New(NPMIMEType pluginType, NPP instance, uint16 mode, return ret; } -NPError +static NPError Private_Destroy(NPP instance, NPSavedData** save) { PLUGINDEBUGSTR("Destroy"); return NPP_Destroy(instance, save); } -NPError +static NPError Private_SetWindow(NPP instance, NPWindow* window) { NPError err; @@ -196,7 +196,7 @@ Private_SetWindow(NPP instance, NPWindow* window) return err; } -NPError +static NPError Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype) { @@ -206,7 +206,7 @@ Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream, return err; } -int32 +static int32 Private_WriteReady(NPP instance, NPStream* stream) { unsigned int result; @@ -215,7 +215,7 @@ Private_WriteReady(NPP instance, NPStream* stream) return result; } -int32 +static int32 Private_Write(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer) { @@ -225,7 +225,7 @@ Private_Write(NPP instance, NPStream* stream, int32 offset, int32 len, return result; } -void +static void Private_StreamAsFile(NPP instance, NPStream* stream, const char* fname) { PLUGINDEBUGSTR("StreamAsFile"); @@ -233,7 +233,7 @@ Private_StreamAsFile(NPP instance, NPStream* stream, const char* fname) } -NPError +static NPError Private_DestroyStream(NPP instance, NPStream* stream, NPError reason) { NPError err; @@ -243,14 +243,14 @@ Private_DestroyStream(NPP instance, NPStream* stream, NPError reason) } -void +static void Private_Print(NPP instance, NPPrint* platformPrint) { PLUGINDEBUGSTR("Print"); NPP_Print(instance, platformPrint); } -JRIGlobalRef +static JRIGlobalRef Private_GetJavaClass(void) { jref clazz = NPP_GetJavaClass(); |