diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-17 17:29:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-17 17:29:36 +0200 |
commit | c484846c4459affa769b84cbd0b586f2bbaec828 (patch) | |
tree | 64be47b9451d3fd508a662b06db66ad3ddd03fb0 /coreutils | |
parent | a6a102ec4c8d96fcfb968c88fbdae80f6142c7bf (diff) | |
download | busybox-w32-c484846c4459affa769b84cbd0b586f2bbaec828.tar.gz busybox-w32-c484846c4459affa769b84cbd0b586f2bbaec828.tar.bz2 busybox-w32-c484846c4459affa769b84cbd0b586f2bbaec828.zip |
introduce and use exitcode_t
function old new delta
strings_main 422 420 -2
setfattr_main 175 173 -2
brctl_main 1548 1546 -2
makedevs_main 979 975 -4
rev_main 337 332 -5
getfattr_main 307 302 -5
cut_main 1201 1196 -5
cksum_main 398 393 -5
umount_main 573 565 -8
ln_main 516 508 -8
expand_main 660 652 -8
df_main 1068 1060 -8
renice_main 346 332 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/13 up/down: 0/-76) Total: -76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cksum.c | 2 | ||||
-rw-r--r-- | coreutils/cut.c | 2 | ||||
-rw-r--r-- | coreutils/dd.c | 2 | ||||
-rw-r--r-- | coreutils/df.c | 2 | ||||
-rw-r--r-- | coreutils/expand.c | 2 | ||||
-rw-r--r-- | coreutils/fold.c | 2 | ||||
-rw-r--r-- | coreutils/ln.c | 2 | ||||
-rw-r--r-- | coreutils/touch.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/coreutils/cksum.c b/coreutils/cksum.c index badc63a6a..1fb6ef2d0 100644 --- a/coreutils/cksum.c +++ b/coreutils/cksum.c | |||
@@ -39,7 +39,7 @@ int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | |||
39 | int cksum_main(int argc UNUSED_PARAM, char **argv) | 39 | int cksum_main(int argc UNUSED_PARAM, char **argv) |
40 | { | 40 | { |
41 | uint32_t *crc32_table = crc32_filltable(NULL, IS_CKSUM); | 41 | uint32_t *crc32_table = crc32_filltable(NULL, IS_CKSUM); |
42 | int exit_code = EXIT_SUCCESS; | 42 | exitcode_t exit_code = EXIT_SUCCESS; |
43 | 43 | ||
44 | #if ENABLE_DESKTOP | 44 | #if ENABLE_DESKTOP |
45 | getopt32(argv, ""); /* cksum coreutils 6.9 compat */ | 45 | getopt32(argv, ""); /* cksum coreutils 6.9 compat */ |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 25b16d1a8..d129f9b9d 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -311,7 +311,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv) | |||
311 | } | 311 | } |
312 | 312 | ||
313 | { | 313 | { |
314 | int retval = EXIT_SUCCESS; | 314 | exitcode_t retval = EXIT_SUCCESS; |
315 | 315 | ||
316 | if (!*argv) | 316 | if (!*argv) |
317 | *--argv = (char *)"-"; | 317 | *--argv = (char *)"-"; |
diff --git a/coreutils/dd.c b/coreutils/dd.c index c032ebe1b..8bb782781 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -375,7 +375,7 @@ int dd_main(int argc UNUSED_PARAM, char **argv) | |||
375 | OP_oflag_direct, | 375 | OP_oflag_direct, |
376 | #endif | 376 | #endif |
377 | }; | 377 | }; |
378 | smallint exitcode = EXIT_FAILURE; | 378 | exitcode_t exitcode = EXIT_FAILURE; |
379 | int i; | 379 | int i; |
380 | size_t ibs = 512; | 380 | size_t ibs = 512; |
381 | char *ibuf; | 381 | char *ibuf; |
diff --git a/coreutils/df.c b/coreutils/df.c index 76e9cefbf..03aa78148 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -113,7 +113,7 @@ int df_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | |||
113 | int df_main(int argc UNUSED_PARAM, char **argv) | 113 | int df_main(int argc UNUSED_PARAM, char **argv) |
114 | { | 114 | { |
115 | unsigned long df_disp_hr = 1024; | 115 | unsigned long df_disp_hr = 1024; |
116 | int status = EXIT_SUCCESS; | 116 | exitcode_t status = EXIT_SUCCESS; |
117 | unsigned opt; | 117 | unsigned opt; |
118 | FILE *mount_table; | 118 | FILE *mount_table; |
119 | struct mntent *mount_entry; | 119 | struct mntent *mount_entry; |
diff --git a/coreutils/expand.c b/coreutils/expand.c index 47693e144..c4db26055 100644 --- a/coreutils/expand.c +++ b/coreutils/expand.c | |||
@@ -192,7 +192,7 @@ int expand_main(int argc UNUSED_PARAM, char **argv) | |||
192 | FILE *file; | 192 | FILE *file; |
193 | unsigned tab_size; | 193 | unsigned tab_size; |
194 | unsigned opt; | 194 | unsigned opt; |
195 | int exit_status = EXIT_SUCCESS; | 195 | exitcode_t exit_status = EXIT_SUCCESS; |
196 | 196 | ||
197 | init_unicode(); | 197 | init_unicode(); |
198 | 198 | ||
diff --git a/coreutils/fold.c b/coreutils/fold.c index 2839c8c68..8112fe911 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -77,7 +77,7 @@ int fold_main(int argc UNUSED_PARAM, char **argv) | |||
77 | char *line_out = NULL; | 77 | char *line_out = NULL; |
78 | const char *w_opt = "80"; | 78 | const char *w_opt = "80"; |
79 | unsigned width; | 79 | unsigned width; |
80 | smallint exitcode = EXIT_SUCCESS; | 80 | exitcode_t exitcode = EXIT_SUCCESS; |
81 | 81 | ||
82 | init_unicode(); | 82 | init_unicode(); |
83 | 83 | ||
diff --git a/coreutils/ln.c b/coreutils/ln.c index 34eec398a..080ba142e 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -52,7 +52,7 @@ | |||
52 | int ln_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 52 | int ln_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
53 | int ln_main(int argc, char **argv) | 53 | int ln_main(int argc, char **argv) |
54 | { | 54 | { |
55 | int status = EXIT_SUCCESS; | 55 | exitcode_t status = EXIT_SUCCESS; |
56 | int opts; | 56 | int opts; |
57 | char *last; | 57 | char *last; |
58 | char *src_name; | 58 | char *src_name; |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 8fde70e12..ced596c89 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -77,7 +77,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv) | |||
77 | { | 77 | { |
78 | int fd; | 78 | int fd; |
79 | int opts; | 79 | int opts; |
80 | smalluint status = EXIT_SUCCESS; | 80 | exitcode_t status = EXIT_SUCCESS; |
81 | #if ENABLE_FEATURE_TOUCH_SUSV3 | 81 | #if ENABLE_FEATURE_TOUCH_SUSV3 |
82 | char *reference_file; | 82 | char *reference_file; |
83 | char *date_str; | 83 | char *date_str; |