diff options
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r-- | apps/plugins/midi/midifile.c | 2 | ||||
-rw-r--r-- | apps/plugins/midi/midifile.h | 2 | ||||
-rw-r--r-- | apps/plugins/midi/midiplay.c | 8 |
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 | ||
27 | struct MIDIfile midi_file IBSS_ATTR; | 27 | struct MIDIfile midi_file IBSS_ATTR; |
28 | 28 | ||
29 | struct MIDIfile * loadFile(char * filename) | 29 | struct 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 | ||
20 | struct MIDIfile * loadFile(char * filename); | 20 | struct 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]; | |||
191 | static unsigned int samples_in_buf; | 191 | static unsigned int samples_in_buf; |
192 | 192 | ||
193 | int quit=0; | 193 | int quit=0; |
194 | struct plugin_api * rb; | 194 | const struct plugin_api * rb; |
195 | 195 | ||
196 | static int midimain(void * filename); | 196 | static int midimain(const void * filename); |
197 | 197 | ||
198 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 198 | enum 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 | ||
295 | static int midimain(void * filename) | 295 | static int midimain(const void * filename) |
296 | { | 296 | { |
297 | int notesUsed = 0; | 297 | int notesUsed = 0; |
298 | int a=0; | 298 | int a=0; |