Skip to content

Commit

Permalink
Fixed bug #808
Browse files Browse the repository at this point in the history
 O.Sezer      2009-09-26 03:48:05 PDT

native_midi_error() returns strings at many places but is declared to return
char* instead of co?nst char*.  The attached patch makes native_midi_error() to
return const char*.
  • Loading branch information
slouken committed Sep 26, 2009
1 parent 5b28170 commit 079e34d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion native_midi/native_midi.h
Expand Up @@ -35,6 +35,6 @@ void native_midi_start(NativeMidiSong *song);
void native_midi_stop();
int native_midi_active();
void native_midi_setvolume(int volume);
char *native_midi_error();
const char *native_midi_error(void);

#endif /* _NATIVE_MIDI_H_ */
2 changes: 1 addition & 1 deletion native_midi/native_midi_mac.c
Expand Up @@ -339,7 +339,7 @@ void native_midi_setvolume(int volume)
TuneSetVolume(gTunePlayer, (0x00010000 * volume)/SDL_MIX_MAXVOLUME);
}

char *native_midi_error()
const char *native_midi_error(void)
{
return gErrorBuffer;
}
Expand Down
2 changes: 1 addition & 1 deletion native_midi/native_midi_win32.c
Expand Up @@ -311,7 +311,7 @@ void native_midi_setvolume(int volume)
midiOutSetVolume((HMIDIOUT)hMidiStream, MAKELONG(calcVolume , calcVolume));
}

char *native_midi_error()
const char *native_midi_error(void)
{
return "";
}
Expand Down
2 changes: 1 addition & 1 deletion native_midi_gpl/native_midi_gpl.c
Expand Up @@ -315,7 +315,7 @@ void native_midi_setvolume(int volume)
{
}

char *native_midi_error()
const char *native_midi_error(void)
{
return "stala sa chyba";
}
Expand Down

0 comments on commit 079e34d

Please sign in to comment.