Bump to version 1.22.1
[platform/upstream/busybox.git] / libbb / mode_string.c
index 01029bf..f1afe7d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 2003  Manuel Novoa III  <mjn3@codepoet.org>
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 /* Aug 13, 2003
@@ -47,11 +47,11 @@ static const mode_t mode_flags[] = {
 
 /* The previous version used "0pcCd?bB-?l?s???".  However, the '0', 'C',
  * and 'B' types don't appear to be available on linux.  So I removed them. */
-static const char type_chars[16] = "?pc?d?b?-?l?s???";
-/*                                  0123456789abcdef */
-static const char mode_chars[7] = "rwxSTst";
+static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???";
+/***************************************** 0123456789abcdef */
+static const char mode_chars[7] ALIGN1 = "rwxSTst";
 
-const char *bb_mode_string(int mode)
+const char* FAST_FUNC bb_mode_string(mode_t mode)
 {
        static char buf[12];
        char *p = buf;
@@ -88,10 +88,10 @@ const char *bb_mode_string(int mode)
 /* The previous version used "0pcCd?bB-?l?s???".  However, the '0', 'C',
  * and 'B' types don't appear to be available on linux.  So I removed them. */
 static const char type_chars[16] = "?pc?d?b?-?l?s???";
-/*                                  0123456789abcdef */
+/********************************** 0123456789abcdef */
 static const char mode_chars[7] = "rwxSTst";
 
-const char *bb_mode_string(int mode)
+const char* FAST_FUNC bb_mode_string(mode_t mode)
 {
        static char buf[12];
        char *p = buf;