extern char *skip_whitespace(const char *);
extern char *skip_non_whitespace(const char *);
-extern const char *bb_mode_string(int mode);
+extern const char *bb_mode_string(mode_t mode);
extern int is_directory(const char *name, int followLinks, struct stat *statBuf);
extern int remove_file(const char *path, int flags);
extern int copy_file(const char *source, const char *dest, int flags);
/* 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;
/* 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;