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>
This commit is contained in:
Denys Vlasenko 2020-12-17 12:24:50 +01:00
parent 91e330a53f
commit 25b2680056
6 changed files with 15 additions and 15 deletions

View file

@ -72,12 +72,12 @@ void FAST_FUNC launch_helper(const char **argv)
char* FAST_FUNC send_mail_command(const char *fmt, const char *param)
{
char *msg;
if (timeout)
alarm(timeout);
if (G.timeout)
alarm(G.timeout);
msg = (char*)fmt;
if (fmt) {
msg = xasprintf(fmt, param);
if (verbose)
if (G.verbose)
bb_error_msg("send:'%s'", msg);
printf("%s\r\n", msg);
}