[BUILD] warning ultoa_r returns char *

ultoa_r modifies its output, it returns a char *.
This commit is contained in:
Emeric Brun 2010-01-04 14:54:38 +01:00 committed by Willy Tarreau
parent 129c59014c
commit 3a7fce5383
2 changed files with 2 additions and 2 deletions

View File

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

View File

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