From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midi2wav.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'apps/plugins/midi2wav.c') diff --git a/apps/plugins/midi2wav.c b/apps/plugins/midi2wav.c index ad41451d88..6e4e7d1bc1 100644 --- a/apps/plugins/midi2wav.c +++ b/apps/plugins/midi2wav.c @@ -54,20 +54,14 @@ long bpm; #include "midi/synth.c" - - int fd=-1; /* File descriptor where the output is written */ extern long tempo; /* The sequencer keeps track of this */ - -struct plugin_api * rb; - - - +const struct plugin_api * rb; -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { (void)parameter; rb = api; -- cgit v1.2.3