diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-07 17:42:07 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-07 17:42:07 +0000 |
commit | 5246b7f84e7444385badb568d791d3fdda44d8dd (patch) | |
tree | ba3e50459f4b4ae476ce19e797c68c5e6de055e0 /du.c | |
parent | 02826349291e659213f4d2e284edd4989626d5e5 (diff) | |
download | busybox-w32-5246b7f84e7444385badb568d791d3fdda44d8dd.tar.gz busybox-w32-5246b7f84e7444385badb568d791d3fdda44d8dd.tar.bz2 busybox-w32-5246b7f84e7444385badb568d791d3fdda44d8dd.zip |
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
'format' function to 'make_human_readable_str'.
git-svn-id: svn://busybox.net/trunk/busybox@2001 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'du.c')
-rw-r--r-- | du.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,7 +60,7 @@ static void print_normal(long size, char *filename) | |||
60 | default: | 60 | default: |
61 | base = 0; | 61 | base = 0; |
62 | } | 62 | } |
63 | printf("%s\t%s\n", format(size, base), filename); | 63 | printf("%s\t%s\n", make_human_readable_str(size, base), filename); |
64 | #else | 64 | #else |
65 | printf("%ld\t%s\n", size, filename); | 65 | printf("%ld\t%s\n", size, filename); |
66 | #endif | 66 | #endif |
@@ -69,7 +69,7 @@ printf("%s\t%s\n", format(size, base), filename); | |||
69 | static void print_summary(long size, char *filename) | 69 | static void print_summary(long size, char *filename) |
70 | { | 70 | { |
71 | if (du_depth == 1) { | 71 | if (du_depth == 1) { |
72 | printf("summary\n"); | 72 | printf("summary\n"); |
73 | print_normal(size, filename); | 73 | print_normal(size, filename); |
74 | } | 74 | } |
75 | } | 75 | } |
@@ -196,7 +196,7 @@ int du_main(int argc, char **argv) | |||
196 | return status; | 196 | return status; |
197 | } | 197 | } |
198 | 198 | ||
199 | /* $Id: du.c,v 1.41 2001/03/07 06:04:08 andersen Exp $ */ | 199 | /* $Id: du.c,v 1.42 2001/03/07 17:42:07 markw Exp $ */ |
200 | /* | 200 | /* |
201 | Local Variables: | 201 | Local Variables: |
202 | c-file-style: "linux" | 202 | c-file-style: "linux" |