[BUILD] warning ultoa_r returns char *
ultoa_r modifies its output, it returns a char *.
This commit is contained in:
parent
129c59014c
commit
3a7fce5383
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue