diff options
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 3cc935553..1452e5883 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -153,7 +153,7 @@ int du_main(int argc, char **argv) | |||
153 | int slink_depth_save; | 153 | int slink_depth_save; |
154 | int print_final_total; | 154 | int print_final_total; |
155 | char *smax_print_depth; | 155 | char *smax_print_depth; |
156 | unsigned long opt; | 156 | unsigned opt; |
157 | 157 | ||
158 | #ifdef CONFIG_FEATURE_DU_DEFUALT_BLOCKSIZE_1K | 158 | #ifdef CONFIG_FEATURE_DU_DEFUALT_BLOCKSIZE_1K |
159 | if (getenv("POSIXLY_CORRECT")) { /* TODO - a new libbb function? */ | 159 | if (getenv("POSIXLY_CORRECT")) { /* TODO - a new libbb function? */ |
@@ -172,8 +172,8 @@ int du_main(int argc, char **argv) | |||
172 | * ignore -a. This is consistent with -s being equivalent to -d 0. | 172 | * ignore -a. This is consistent with -s being equivalent to -d 0. |
173 | */ | 173 | */ |
174 | #ifdef CONFIG_FEATURE_HUMAN_READABLE | 174 | #ifdef CONFIG_FEATURE_HUMAN_READABLE |
175 | bb_opt_complementally = "h-km:k-hm:m-hk:H-L:L-H:s-d:d-s"; | 175 | opt_complementary = "h-km:k-hm:m-hk:H-L:L-H:s-d:d-s"; |
176 | opt = bb_getopt_ulflags(argc, argv, "aHkLsx" "d:" "lc" "hm", &smax_print_depth); | 176 | opt = getopt32(argc, argv, "aHkLsx" "d:" "lc" "hm", &smax_print_depth); |
177 | if((opt & (1 << 9))) { | 177 | if((opt & (1 << 9))) { |
178 | /* -h opt */ | 178 | /* -h opt */ |
179 | disp_hr = 0; | 179 | disp_hr = 0; |
@@ -187,8 +187,8 @@ int du_main(int argc, char **argv) | |||
187 | disp_hr = KILOBYTE; | 187 | disp_hr = KILOBYTE; |
188 | } | 188 | } |
189 | #else | 189 | #else |
190 | bb_opt_complementally = "H-L:L-H:s-d:d-s"; | 190 | opt_complementary = "H-L:L-H:s-d:d-s"; |
191 | opt = bb_getopt_ulflags(argc, argv, "aHkLsx" "d:" "lc", &smax_print_depth); | 191 | opt = getopt32(argc, argv, "aHkLsx" "d:" "lc", &smax_print_depth); |
192 | #if !defined CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K | 192 | #if !defined CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K |
193 | if((opt & (1 << 2))) { | 193 | if((opt & (1 << 2))) { |
194 | /* -k opt */ | 194 | /* -k opt */ |