]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] warning ultoa_r returns char *
authorEmeric Brun <ebrun@exceliance.fr>
Mon, 4 Jan 2010 13:54:38 +0000 (14:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jan 2010 22:47:00 +0000 (23:47 +0100)
ultoa_r modifies its output, it returns a char *.

include/common/standard.h
src/standard.c

index ce3c6b85b0c96e90799c8821472f4284180faa7c..4dd622ac4b85c5990e809c3d9f7d886a29bb6efa 100644 (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)
 {
index aab318bb36c894e85363b70287261f2688a05dda..6ae4dd7842aa3c4a85aed414843445802939a508 100644 (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;