diff options
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; |