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/mail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mailutils/mail.c') diff --git a/mailutils/mail.c b/mailutils/mail.c index 3a1fd6949..ce5267904 100644 --- a/mailutils/mail.c +++ b/mailutils/mail.c @@ -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); } -- cgit v1.2.3