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
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
static const struct {
int code;
char *msg;
const char *msg;
} msgs[] = {
{ MP_OKAY, "Successful" },
{ MP_MEM, "Out of heap" },
@ -25,7 +25,7 @@ static const struct {
};
/* 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;