[BUILD] warning ultoa_r returns char *

ultoa_r modifies its output, it returns a char *.
(cherry picked from commit 3a7fce53831d5d4a5493c6dd7c061ff8a8b9da48)
This commit is contained in:
Emeric Brun 2010-01-04 14:54:38 +01:00 committed by Willy Tarreau
parent ceb33a0e68
commit 1e01b78aff
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;