summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c5
-rw-r--r--firmware/system.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index a53618d93c..251d433d76 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -78,7 +78,7 @@ static void (*pfn_tsr_exit)(void) = NULL; /* TSR exit callback */
78 78
79static int plugin_test(int api_version, int model, int memsize); 79static int plugin_test(int api_version, int model, int memsize);
80 80
81static struct plugin_api rockbox_api = { 81static const struct plugin_api rockbox_api = {
82 PLUGIN_API_VERSION, 82 PLUGIN_API_VERSION,
83 83
84 plugin_test, 84 plugin_test,
@@ -331,7 +331,8 @@ int plugin_load(char* plugin, void* parameter)
331#endif 331#endif
332 332
333 plugin_loaded = true; 333 plugin_loaded = true;
334 rc = plugin_start(&rockbox_api, parameter); 334 rc = plugin_start((struct plugin_api*) &rockbox_api, parameter);
335 /* explicitly casting the pointer here to avoid touching every plugin. */
335 plugin_loaded = false; 336 plugin_loaded = false;
336 337
337 switch (rc) { 338 switch (rc) {
diff --git a/firmware/system.c b/firmware/system.c
index 41358a6776..33d5fbf74a 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -33,7 +33,7 @@
33extern void reset_pc (void); 33extern void reset_pc (void);
34extern void reset_sp (void); 34extern void reset_sp (void);
35 35
36static const char* irqname[] = { 36static const char* const irqname[] = {
37 "", "", "", "", "IllInstr", "", "IllSltIn","","", 37 "", "", "", "", "IllInstr", "", "IllSltIn","","",
38 "CPUAdrEr", "DMAAdrEr", "NMI", "UserBrk", 38 "CPUAdrEr", "DMAAdrEr", "NMI", "UserBrk",
39 "","","","","","","","","","","","","","","","","","","", 39 "","","","","","","","","","","","","","","","","","","",