aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stat.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-08 16:07:02 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-08 16:07:02 +0000
commit9bb500e5d36c2c5945b611c4c2064e03a6ff9660 (patch)
tree8e69bb572dbb2636689a15b21d7a646e942b5091 /coreutils/stat.c
parenta90d14bdbfab265b227e483c71dad87b7e1c3c1b (diff)
downloadbusybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.tar.gz
busybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.tar.bz2
busybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.zip
add some missed statics on constant objects.
fix few #ifndef ENABLE_xxx # size busybox_old busybox_unstripped text data bss dec hex filename 677152 2920 18208 698280 aa7a8 busybox_old 676420 2920 18208 697548 aa4cc busybox_unstripped git-svn-id: svn://busybox.net/trunk/busybox@18366 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r--coreutils/stat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 397e395d8..7c5631764 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -68,7 +68,7 @@ static char const *human_time(time_t t)
68static char const *human_fstype(long f_type) 68static char const *human_fstype(long f_type)
69{ 69{
70 int i; 70 int i;
71 const struct types { 71 static const struct types {
72 long type; 72 long type;
73 const char * const fs; 73 const char * const fs;
74 } humantypes[] = { 74 } humantypes[] = {
@@ -109,13 +109,13 @@ static char const *human_fstype(long f_type)
109 { 0x62656572, "sysfs" }, 109 { 0x62656572, "sysfs" },
110 { 0, "UNKNOWN" } 110 { 0, "UNKNOWN" }
111 }; 111 };
112 for (i=0; humantypes[i].type; ++i) 112 for (i = 0; humantypes[i].type; ++i)
113 if (humantypes[i].type == f_type) 113 if (humantypes[i].type == f_type)
114 break; 114 break;
115 return humantypes[i].fs; 115 return humantypes[i].fs;
116} 116}
117 117
118#ifdef CONFIG_FEATURE_STAT_FORMAT 118#if ENABLE_FEATURE_STAT_FORMAT
119/* print statfs info */ 119/* print statfs info */
120static void print_statfs(char *pformat, const size_t buf_len, const char m, 120static void print_statfs(char *pformat, const size_t buf_len, const char m,
121 const char * const filename, void const *data 121 const char * const filename, void const *data
@@ -354,9 +354,9 @@ static bool do_statfs(char const *filename, char const *format)
354 return 0; 354 return 0;
355 } 355 }
356 356
357#ifdef CONFIG_FEATURE_STAT_FORMAT 357#if ENABLE_FEATURE_STAT_FORMAT
358 if (format == NULL) 358 if (format == NULL)
359#ifndef ENABLE_SELINUX 359#if !ENABLE_SELINUX
360 format = (option_mask32 & OPT_TERSE 360 format = (option_mask32 & OPT_TERSE
361 ? "%n %i %l %t %s %b %f %a %c %d\n" 361 ? "%n %i %l %t %s %b %f %a %c %d\n"
362 : " File: \"%n\"\n" 362 : " File: \"%n\"\n"
@@ -460,9 +460,9 @@ static bool do_stat(char const *filename, char const *format)
460 return 0; 460 return 0;
461 } 461 }
462 462
463#ifdef CONFIG_FEATURE_STAT_FORMAT 463#if ENABLE_FEATURE_STAT_FORMAT
464 if (format == NULL) { 464 if (format == NULL) {
465#ifndef ENABLE_SELINUX 465#if !ENABLE_SELINUX
466 if (option_mask32 & OPT_TERSE) { 466 if (option_mask32 & OPT_TERSE) {
467 format = "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o"; 467 format = "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o";
468 } else { 468 } else {