summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/ld_string.h')
-rw-r--r--ldso/ldso/ld_string.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ldso/ldso/ld_string.h b/ldso/ldso/ld_string.h
index 4a3462683..46de5320f 100644
--- a/ldso/ldso/ld_string.h
+++ b/ldso/ldso/ld_string.h
@@ -170,10 +170,9 @@ static inline char *_dl_get_last_path_component_inline(char *path)
/* Early on, we can't call printf, so use this to print out
* numbers using the SEND_STDERR() macro */
-static inline char *_dl_simple_ltoa_inline(unsigned long i)
+static inline char *_dl_simple_ltoa_inline(char * local, unsigned long i)
{
/* 21 digits plus null terminator, good for 64-bit or smaller ints */
- static char local[22];
char *p = &local[21];
*p-- = '\0';
do {
@@ -183,10 +182,9 @@ static inline char *_dl_simple_ltoa_inline(unsigned long i)
return p + 1;
}
-static inline char *_dl_simple_ltoahex(unsigned long i)
+static inline char *_dl_simple_ltoahex_inline(char * local, unsigned long i)
{
/* 21 digits plus null terminator, good for 64-bit or smaller ints */
- static char local[22];
char *p = &local[21];
*p-- = '\0';
do {