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-25b2680056454dc4761ba3b2efde7c3414738f8c.tar.gz |
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) else filename = bb_get_last_path_component_strip(xstrdup(filename)); - if (opts & OPT_X) { + if (option_mask32 & OPT_X) { int fd[2]; /* start external helper */ @@ -219,7 +219,7 @@ static int parse(const char *boundary, char **argv) fclose(fp); /* Wait for child */ - if (opts & OPT_X) { + if (option_mask32 & OPT_X) { int rc; signal(SIGPIPE, SIG_DFL); rc = (wait4pid(pid) & 0xff); @@ -275,6 +275,7 @@ Usage: reformime [options] int reformime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int reformime_main(int argc UNUSED_PARAM, char **argv) { + unsigned opts; const char *opt_prefix = ""; INIT_G(); |