aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 10:36:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 10:36:25 +0000
commite324184c0509cc0db168ce29546e1b52800a79c6 (patch)
tree9d4f18b3cc1ab715b6ff91cc9e3e942d11dfc51f /coreutils/df.c
parent5f1b149d541ebba7cab841cb647f113248f9fb8f (diff)
downloadbusybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.gz
busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.bz2
busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.zip
s/#ifdef CONFIG_/#if ENABLE_/g
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 5154eeb45..f616398f4 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -22,7 +22,7 @@
22#include <sys/vfs.h> 22#include <sys/vfs.h>
23#include "libbb.h" 23#include "libbb.h"
24 24
25#ifndef CONFIG_FEATURE_HUMAN_READABLE 25#if !ENABLE_FEATURE_HUMAN_READABLE
26static long kscale(long b, long bs) 26static long kscale(long b, long bs)
27{ 27{
28 return ( b * (long long) bs + 1024/2 ) / 1024; 28 return ( b * (long long) bs + 1024/2 ) / 1024;
@@ -34,7 +34,7 @@ int df_main(int argc, char **argv)
34{ 34{
35 long blocks_used; 35 long blocks_used;
36 long blocks_percent_used; 36 long blocks_percent_used;
37#ifdef CONFIG_FEATURE_HUMAN_READABLE 37#if ENABLE_FEATURE_HUMAN_READABLE
38 unsigned long df_disp_hr = 1024; 38 unsigned long df_disp_hr = 1024;
39#endif 39#endif
40 int status = EXIT_SUCCESS; 40 int status = EXIT_SUCCESS;
@@ -46,7 +46,7 @@ int df_main(int argc, char **argv)
46 static const char hdr_1k[] ALIGN1 = "1k-blocks"; 46 static const char hdr_1k[] ALIGN1 = "1k-blocks";
47 const char *disp_units_hdr = hdr_1k; 47 const char *disp_units_hdr = hdr_1k;
48 48
49#ifdef CONFIG_FEATURE_HUMAN_READABLE 49#if ENABLE_FEATURE_HUMAN_READABLE
50 opt_complementary = "h-km:k-hm:m-hk"; 50 opt_complementary = "h-km:k-hm:m-hk";
51 opt = getopt32(argc, argv, "hmk"); 51 opt = getopt32(argc, argv, "hmk");
52 if (opt & 1) { 52 if (opt & 1) {
@@ -125,7 +125,7 @@ int df_main(int argc, char **argv)
125 } 125 }
126 } 126 }
127 127
128#ifdef CONFIG_FEATURE_HUMAN_READABLE 128#if ENABLE_FEATURE_HUMAN_READABLE
129 printf("%-20s %9s ", device, 129 printf("%-20s %9s ", device,
130 make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr)); 130 make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));
131 131