From 25b2680056454dc4761ba3b2efde7c3414738f8c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 17 Dec 2020 12:24:50 +0100 Subject: 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 --- mailutils/reformime.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mailutils/reformime.c') 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(); -- cgit v1.2.3