Next round of const policeing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4902 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-07-20 21:37:36 +00:00
parent c50a069e6e
commit 398e40184e
2 changed files with 4 additions and 3 deletions

View file

@ -78,7 +78,7 @@ static void (*pfn_tsr_exit)(void) = NULL; /* TSR exit callback */
static int plugin_test(int api_version, int model, int memsize); static int plugin_test(int api_version, int model, int memsize);
static struct plugin_api rockbox_api = { static const struct plugin_api rockbox_api = {
PLUGIN_API_VERSION, PLUGIN_API_VERSION,
plugin_test, plugin_test,
@ -331,7 +331,8 @@ int plugin_load(char* plugin, void* parameter)
#endif #endif
plugin_loaded = true; plugin_loaded = true;
rc = plugin_start(&rockbox_api, parameter); rc = plugin_start((struct plugin_api*) &rockbox_api, parameter);
/* explicitly casting the pointer here to avoid touching every plugin. */
plugin_loaded = false; plugin_loaded = false;
switch (rc) { switch (rc) {

View file

@ -33,7 +33,7 @@
extern void reset_pc (void); extern void reset_pc (void);
extern void reset_sp (void); extern void reset_sp (void);
static const char* irqname[] = { static const char* const irqname[] = {
"", "", "", "", "IllInstr", "", "IllSltIn","","", "", "", "", "", "IllInstr", "", "IllSltIn","","",
"CPUAdrEr", "DMAAdrEr", "NMI", "UserBrk", "CPUAdrEr", "DMAAdrEr", "NMI", "UserBrk",
"","","","","","","","","","","","","","","","","","","", "","","","","","","","","","","","","","","","","","","",