diff options
Diffstat (limited to 'libbb/mode_string.c')
-rw-r--r-- | libbb/mode_string.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 9a286f3ff..2b829016f 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c @@ -43,9 +43,8 @@ static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???"; /***************************************** 0123456789abcdef */ static const char mode_chars[7] ALIGN1 = "rwxSTst"; -const char* FAST_FUNC bb_mode_string(mode_t mode) +char* FAST_FUNC bb_mode_string(char buf[12], mode_t mode) { - static char buf[12]; char *p = buf; int i, j, k; @@ -83,9 +82,8 @@ static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???"; /********************************** 0123456789abcdef */ static const char mode_chars[7] ALIGN1 = "rwxSTst"; -const char* FAST_FUNC bb_mode_string(mode_t mode) +char* FAST_FUNC bb_mode_string(char buf[12], mode_t mode) { - static char buf[12]; char *p = buf; int i, j, k, m; |