svn commit: trunk/busybox: include libbb

aldot at busybox.net aldot at busybox.net
Mon Jan 22 09:48:08 PST 2007


Author: aldot
Date: 2007-01-22 09:48:08 -0800 (Mon, 22 Jan 2007)
New Revision: 17467

Log:
- the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion purposefully


Modified:
   trunk/busybox/include/libbb.h
   trunk/busybox/libbb/mode_string.c


Changeset:
Modified: trunk/busybox/include/libbb.h
===================================================================
--- trunk/busybox/include/libbb.h	2007-01-22 17:42:37 UTC (rev 17466)
+++ trunk/busybox/include/libbb.h	2007-01-22 17:48:08 UTC (rev 17467)
@@ -228,7 +228,7 @@
 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);

Modified: trunk/busybox/libbb/mode_string.c
===================================================================
--- trunk/busybox/libbb/mode_string.c	2007-01-22 17:42:37 UTC (rev 17466)
+++ trunk/busybox/libbb/mode_string.c	2007-01-22 17:48:08 UTC (rev 17467)
@@ -51,7 +51,7 @@
 /*                                  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 @@
 /*                                  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;



More information about the busybox-cvs mailing list