diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-08-28 23:31:54 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-08-28 23:31:54 +0000 |
commit | 73561cc75ac31e63bcab4b4ebfaf738e4ca225e6 (patch) | |
tree | 2a57564b8917a983365c765d4daa83032d9f0a17 /coreutils/du.c | |
parent | 6ce8dae1d5a201156a83201de6c49cdcc4c8df3e (diff) | |
download | busybox-w32-73561cc75ac31e63bcab4b4ebfaf738e4ca225e6.tar.gz busybox-w32-73561cc75ac31e63bcab4b4ebfaf738e4ca225e6.tar.bz2 busybox-w32-73561cc75ac31e63bcab4b4ebfaf738e4ca225e6.zip |
- pull from busybox_scratch: r15829:15850
Various fixes, cleanups and shrinkage:
saves 952 Bytes:
text data bss dec hex filename
1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old
1086790 15853 790632 1893275 1ce39b busybox
via:
# scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped
function old new delta
ipcrm_main 756 822 +66
getval - 61 +61
maybe_set_utc - 40 +40
udhcpc_main 2896 2912 +16
md5_hash_block 428 437 +9
opt 8 16 +8
qgravechar 106 110 +4
make_bitmap 292 295 +3
inflate_unzip 2056 2059 +3
add_partition 1412 1414 +2
__parsespent 156 158 +2
qrealloc 41 42 +1
format - 1 +1
catv_main 313 314 +1
watch_main 293 292 -1
varunset 81 80 -1
part 1 - -1
check_if_skip 837 836 -1
start_stop_daemon_main 840 837 -3
create_lost_and_found 175 172 -3
supress_non_delimited_lines 4 - -4
static.l 4 - -4
static.c 5 1 -4
bsd_sum_file 237 233 -4
eval2 338 332 -6
arithmetic_common 166 158 -8
cmpfunc 22 5 -17
cksum_main 294 275 -19
cmp_main 465 439 -26
dd_main 1535 1508 -27
rmmod_main 376 333 -43
cut_file 727 644 -83
ipcs_main 3809 3721 -88
cut_main 722 614 -108
date_main 1443 1263 -180
remove_ids 222 - -222
------------------------------------------------------------------------------
(add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 29427c779..3cc935553 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -23,11 +23,6 @@ | |||
23 | * 4) Fixed busybox bug #1284 involving long overflow with human_readable. | 23 | * 4) Fixed busybox bug #1284 involving long overflow with human_readable. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <stdlib.h> | ||
27 | #include <limits.h> | ||
28 | #include <unistd.h> | ||
29 | #include <dirent.h> | ||
30 | #include <sys/stat.h> | ||
31 | #include "busybox.h" | 26 | #include "busybox.h" |
32 | 27 | ||
33 | #ifdef CONFIG_FEATURE_HUMAN_READABLE | 28 | #ifdef CONFIG_FEATURE_HUMAN_READABLE |
@@ -57,7 +52,7 @@ static int one_file_system; | |||
57 | static dev_t dir_dev; | 52 | static dev_t dir_dev; |
58 | 53 | ||
59 | 54 | ||
60 | static void print(long size, char *filename) | 55 | static void print(long size, const char * const filename) |
61 | { | 56 | { |
62 | /* TODO - May not want to defer error checking here. */ | 57 | /* TODO - May not want to defer error checking here. */ |
63 | #ifdef CONFIG_FEATURE_HUMAN_READABLE | 58 | #ifdef CONFIG_FEATURE_HUMAN_READABLE |
@@ -73,7 +68,7 @@ static void print(long size, char *filename) | |||
73 | } | 68 | } |
74 | 69 | ||
75 | /* tiny recursive du */ | 70 | /* tiny recursive du */ |
76 | static long du(char *filename) | 71 | static long du(const char * const filename) |
77 | { | 72 | { |
78 | struct stat statbuf; | 73 | struct stat statbuf; |
79 | long sum; | 74 | long sum; |