summaryrefslogtreecommitdiff
path: root/apps/plugins/midi
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r--apps/plugins/midi/midifile.c2
-rw-r--r--apps/plugins/midi/midifile.h2
-rw-r--r--apps/plugins/midi/midiplay.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c
index 5f98e895a2..6411b8e658 100644
--- a/apps/plugins/midi/midifile.c
+++ b/apps/plugins/midi/midifile.c
@@ -26,7 +26,7 @@ int readID(int file);
26 26
27struct MIDIfile midi_file IBSS_ATTR; 27struct MIDIfile midi_file IBSS_ATTR;
28 28
29struct MIDIfile * loadFile(char * filename) 29struct MIDIfile * loadFile(const char * filename)
30{ 30{
31 struct MIDIfile * mfload; 31 struct MIDIfile * mfload;
32 int file = rb->open (filename, O_RDONLY); 32 int file = rb->open (filename, O_RDONLY);
diff --git a/apps/plugins/midi/midifile.h b/apps/plugins/midi/midifile.h
index a1024d500b..25ab2f5b19 100644
--- a/apps/plugins/midi/midifile.h
+++ b/apps/plugins/midi/midifile.h
@@ -17,5 +17,5 @@
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19 19
20struct MIDIfile * loadFile(char * filename); 20struct MIDIfile * loadFile(const char * filename);
21 21
diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c
index e97d7acf1c..69be53e75d 100644
--- a/apps/plugins/midi/midiplay.c
+++ b/apps/plugins/midi/midiplay.c
@@ -191,11 +191,11 @@ int32_t gmbuf[BUF_SIZE*NBUF];
191static unsigned int samples_in_buf; 191static unsigned int samples_in_buf;
192 192
193int quit=0; 193int quit=0;
194struct plugin_api * rb; 194const struct plugin_api * rb;
195 195
196static int midimain(void * filename); 196static int midimain(const void * filename);
197 197
198enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 198enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
199{ 199{
200 int retval = 0; 200 int retval = 0;
201 201
@@ -292,7 +292,7 @@ void get_more(unsigned char** start, size_t* size)
292#endif 292#endif
293} 293}
294 294
295static int midimain(void * filename) 295static int midimain(const void * filename)
296{ 296{
297 int notesUsed = 0; 297 int notesUsed = 0;
298 int a=0; 298 int a=0;