diff --git a/include/common/standard.h b/include/common/standard.h index ce3c6b85b..4dd622ac4 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -55,7 +55,7 @@ extern int strlcpy2(char *dst, const char *src, int size); * the ascii representation for number 'n' in decimal. */ extern char itoa_str[][171]; -extern const char *ultoa_r(unsigned long n, char *buffer, int size); +extern char *ultoa_r(unsigned long n, char *buffer, int size); extern const char *ulltoh_r(unsigned long long n, char *buffer, int size); static inline const char *ultoa(unsigned long n) { diff --git a/src/standard.c b/src/standard.c index aab318bb3..6ae4dd784 100644 --- a/src/standard.c +++ b/src/standard.c @@ -57,7 +57,7 @@ int strlcpy2(char *dst, const char *src, int size) * This function simply returns a locally allocated string containing * the ascii representation for number 'n' in decimal. */ -const char *ultoa_r(unsigned long n, char *buffer, int size) +char *ultoa_r(unsigned long n, char *buffer, int size) { char *pos;