mp_error_to_string: return const char* instead of char*

This commit is contained in:
Steffen Jaeckel 2011-06-19 15:49:34 +02:00
parent fe40673639
commit abb79ebfed

View File

@ -17,7 +17,7 @@
static const struct { static const struct {
int code; int code;
char *msg; const char *msg;
} msgs[] = { } msgs[] = {
{ MP_OKAY, "Successful" }, { MP_OKAY, "Successful" },
{ MP_MEM, "Out of heap" }, { MP_MEM, "Out of heap" },
@ -25,7 +25,7 @@ static const struct {
}; };
/* return a char * string for a given code */ /* return a char * string for a given code */
char *mp_error_to_string(int code) const char *mp_error_to_string(int code)
{ {
int x; int x;