summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c5
1 files changed, 3 insertions, 2 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) {