diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-17 12:24:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-17 12:24:50 +0100 |
commit | 25b2680056454dc4761ba3b2efde7c3414738f8c (patch) | |
tree | 5fc9e7fd30b948a8edba34df429224e9c887eea5 /mailutils/reformime.c | |
parent | 91e330a53fc8052addec941a9e1e6fcd4b68702b (diff) | |
download | busybox-w32-25b2680056454dc4761ba3b2efde7c3414738f8c.tar.gz busybox-w32-25b2680056454dc4761ba3b2efde7c3414738f8c.tar.bz2 busybox-w32-25b2680056454dc4761ba3b2efde7c3414738f8c.zip |
mail: move "opts" from globals
function old new delta
popmaildir_main 812 823 +11
sendmail_main 1295 1301 +6
makemime_main 291 288 -3
parse 970 966 -4
reformime_main 107 100 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 17/-14) Total: 3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/reformime.c')
-rw-r--r-- | mailutils/reformime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mailutils/reformime.c b/mailutils/reformime.c index 307656a15..a1d3f4e8b 100644 --- a/mailutils/reformime.c +++ b/mailutils/reformime.c | |||
@@ -166,7 +166,7 @@ static int parse(const char *boundary, char **argv) | |||
166 | else | 166 | else |
167 | filename = bb_get_last_path_component_strip(xstrdup(filename)); | 167 | filename = bb_get_last_path_component_strip(xstrdup(filename)); |
168 | 168 | ||
169 | if (opts & OPT_X) { | 169 | if (option_mask32 & OPT_X) { |
170 | int fd[2]; | 170 | int fd[2]; |
171 | 171 | ||
172 | /* start external helper */ | 172 | /* start external helper */ |
@@ -219,7 +219,7 @@ static int parse(const char *boundary, char **argv) | |||
219 | fclose(fp); | 219 | fclose(fp); |
220 | 220 | ||
221 | /* Wait for child */ | 221 | /* Wait for child */ |
222 | if (opts & OPT_X) { | 222 | if (option_mask32 & OPT_X) { |
223 | int rc; | 223 | int rc; |
224 | signal(SIGPIPE, SIG_DFL); | 224 | signal(SIGPIPE, SIG_DFL); |
225 | rc = (wait4pid(pid) & 0xff); | 225 | rc = (wait4pid(pid) & 0xff); |
@@ -275,6 +275,7 @@ Usage: reformime [options] | |||
275 | int reformime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 275 | int reformime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
276 | int reformime_main(int argc UNUSED_PARAM, char **argv) | 276 | int reformime_main(int argc UNUSED_PARAM, char **argv) |
277 | { | 277 | { |
278 | unsigned opts; | ||
278 | const char *opt_prefix = ""; | 279 | const char *opt_prefix = ""; |
279 | 280 | ||
280 | INIT_G(); | 281 | INIT_G(); |