Permalink
Browse files

mp_error_to_string: return const char* instead of char*

  • Loading branch information...
1 parent fe40673 commit abb79ebfeda41bb5a701a40f5739b9f0ad64aff1 @sjaeckel sjaeckel committed Jun 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bn_error.c
View
@@ -17,15 +17,15 @@
static const struct {
int code;
- char *msg;
+ const char *msg;
} msgs[] = {
{ MP_OKAY, "Successful" },
{ MP_MEM, "Out of heap" },
{ MP_VAL, "Value out of range" }
};
/* 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;

0 comments on commit abb79eb

Please sign in to comment.