From 1e01b78aff2a9c7e2c2f63ef74b471d0b5d06fe3 Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Mon, 4 Jan 2010 14:54:38 +0100 Subject: [PATCH] [BUILD] warning ultoa_r returns char * ultoa_r modifies its output, it returns a char *. (cherry picked from commit 3a7fce53831d5d4a5493c6dd7c061ff8a8b9da48) --- include/common/standard.h | 2 +- src/standard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/standard.h b/include/common/standard.h index c1e29ae70..c984fa6e7 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -79,7 +79,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 eecc36069..50f90c226 100644 --- a/src/standard.c +++ b/src/standard.c @@ -56,7 +56,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;