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:
parent
c50a069e6e
commit
398e40184e
2 changed files with 4 additions and 3 deletions
|
@ -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 struct plugin_api rockbox_api = {
|
||||
static const struct plugin_api rockbox_api = {
|
||||
PLUGIN_API_VERSION,
|
||||
|
||||
plugin_test,
|
||||
|
@ -331,7 +331,8 @@ int plugin_load(char* plugin, void* parameter)
|
|||
#endif
|
||||
|
||||
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;
|
||||
|
||||
switch (rc) {
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
extern void reset_pc (void);
|
||||
extern void reset_sp (void);
|
||||
|
||||
static const char* irqname[] = {
|
||||
static const char* const irqname[] = {
|
||||
"", "", "", "", "IllInstr", "", "IllSltIn","","",
|
||||
"CPUAdrEr", "DMAAdrEr", "NMI", "UserBrk",
|
||||
"","","","","","","","","","","","","","","","","","","",
|
||||
|
|
Loading…
Reference in a new issue