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 /miscutils | |
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 'miscutils')
-rw-r--r-- | miscutils/getfattr.c | 2 | ||||
-rw-r--r-- | miscutils/makedevs.c | 2 | ||||
-rw-r--r-- | miscutils/setfattr.c | 2 | ||||
-rw-r--r-- | miscutils/strings.c | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/miscutils/getfattr.c b/miscutils/getfattr.c index 905aec65f..cb42fdac0 100644 --- a/miscutils/getfattr.c +++ b/miscutils/getfattr.c | |||
@@ -77,7 +77,7 @@ int getfattr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | |||
77 | int getfattr_main(int argc UNUSED_PARAM, char **argv) | 77 | int getfattr_main(int argc UNUSED_PARAM, char **argv) |
78 | { | 78 | { |
79 | const char *name; | 79 | const char *name; |
80 | int status; | 80 | exitcode_t status; |
81 | int opt; | 81 | int opt; |
82 | char *buf = NULL; | 82 | char *buf = NULL; |
83 | size_t bufsize = 0; | 83 | size_t bufsize = 0; |
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 48be91875..999a3b976 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -181,7 +181,7 @@ int makedevs_main(int argc UNUSED_PARAM, char **argv) | |||
181 | { | 181 | { |
182 | parser_t *parser; | 182 | parser_t *parser; |
183 | char *line = (char *)"-"; | 183 | char *line = (char *)"-"; |
184 | int ret = EXIT_SUCCESS; | 184 | exitcode_t ret = EXIT_SUCCESS; |
185 | 185 | ||
186 | getopt32(argv, "^" "d:" "\0" "=1", &line); | 186 | getopt32(argv, "^" "d:" "\0" "=1", &line); |
187 | argv += optind; | 187 | argv += optind; |
diff --git a/miscutils/setfattr.c b/miscutils/setfattr.c index 10d1840c9..b68bc9452 100644 --- a/miscutils/setfattr.c +++ b/miscutils/setfattr.c | |||
@@ -32,7 +32,7 @@ int setfattr_main(int argc UNUSED_PARAM, char **argv) | |||
32 | { | 32 | { |
33 | const char *name; | 33 | const char *name; |
34 | const char *value = ""; | 34 | const char *value = ""; |
35 | int status; | 35 | exitcode_t status; |
36 | int opt; | 36 | int opt; |
37 | enum { | 37 | enum { |
38 | OPT_h = (1 << 0), | 38 | OPT_h = (1 << 0), |
diff --git a/miscutils/strings.c b/miscutils/strings.c index 036df5c5d..bd1850cbb 100644 --- a/miscutils/strings.c +++ b/miscutils/strings.c | |||
@@ -40,7 +40,8 @@ | |||
40 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 40 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
41 | int strings_main(int argc UNUSED_PARAM, char **argv) | 41 | int strings_main(int argc UNUSED_PARAM, char **argv) |
42 | { | 42 | { |
43 | int n, c, status = EXIT_SUCCESS; | 43 | int n, c; |
44 | exitcode_t status = EXIT_SUCCESS; | ||
44 | unsigned count; | 45 | unsigned count; |
45 | off_t offset; | 46 | off_t offset; |
46 | FILE *file; | 47 | FILE *file; |