NP_GetMIMEDescription should return const char*

This commit is contained in:
rdb 2012-03-15 14:04:20 +00:00
parent 14c0178225
commit f651750539
2 changed files with 3 additions and 3 deletions

View File

@ -116,9 +116,9 @@ open_logfile() {
// get the mimetypes and extensions this plugin is
// supposed to handle.
////////////////////////////////////////////////////////////////////
char*
const char*
NP_GetMIMEDescription(void) {
return (char*) "application/x-panda3d:p3d:Panda3D applet;";
return (const char*) "application/x-panda3d:p3d:Panda3D applet;";
}
////////////////////////////////////////////////////////////////////

View File

@ -29,7 +29,7 @@ extern "C" {
NPPluginFuncs *pluginFuncs);
#endif
char* NP_GetMIMEDescription(void);
const char* NP_GetMIMEDescription(void);
NPError NP_GetValue(void*, NPPVariable variable, void* value);
NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
NPError OSCALL NP_Shutdown(void);