We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 808

Summary: native_midi_error should return const char*
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   
Attachments: native_midi_error const patch

Description Ozkan Sezer 2009-09-26 03:48:05 UTC
Created attachment 374 [details]
native_midi_error const patch

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*.

Regards.

--
Ozkan
Comment 1 Sam Lantinga 2009-09-26 03:51:44 UTC
Thanks for your patch!

Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial
license?
Comment 2 Ozkan Sezer 2009-09-26 03:59:15 UTC
Yes, of course.

--
Ozkan
Comment 3 Sam Lantinga 2009-09-26 04:36:00 UTC
Thanks!