libtommath: mp_error_to_string: return const char* instead of char*

From https://github.com/libtom/libtommath

Change-Id: Idd5cbab380f5d504fece93afb3a5fcc026309482
This commit is contained in:
Steffen Jaeckel
2013-10-07 17:32:12 -05:00
committed by Jeffrey Altman
parent 5bc653f0ef
commit 7fe018e418
2 changed files with 4 additions and 4 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;