diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-22 17:48:08 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-22 17:48:08 +0000 |
commit | 835f575b61614b19e253711d746898d0a1935309 (patch) | |
tree | 83402a2c66b72e62e38c650f29d4b2d6399c3de2 /libbb | |
parent | 620e57b421e9f575792786eb94a1e67005b4c09c (diff) | |
download | busybox-835f575b61614b19e253711d746898d0a1935309.tar.gz |
- the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion purposefully
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/mode_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 01029bfee..d3ff18375 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c @@ -51,7 +51,7 @@ static const char type_chars[16] = "?pc?d?b?-?l?s???"; /* 0123456789abcdef */ static const char mode_chars[7] = "rwxSTst"; -const char *bb_mode_string(int mode) +const char *bb_mode_string(mode_t mode) { static char buf[12]; char *p = buf; @@ -91,7 +91,7 @@ static const char type_chars[16] = "?pc?d?b?-?l?s???"; /* 0123456789abcdef */ static const char mode_chars[7] = "rwxSTst"; -const char *bb_mode_string(int mode) +const char *bb_mode_string(mode_t mode) { static char buf[12]; char *p = buf; |