From: Ralph Corderoy Date: Sat, 22 Apr 2017 17:21:01 +0000 (+0100) Subject: mts/smtp/smtp.c: Remove unused SM_... timeout macros. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8cb6f4ede8a5e0ccd86f22654d72f2f6426305b8 mts/smtp/smtp.c: Remove unused SM_... timeout macros. SM_TEXT, SM_CLOS, and SM_AUTH are unused. Alter the comment for the block of macros to state they're timeouts in seconds. --- diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index c8bea5b8..97f2f5b6 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -42,20 +42,16 @@ #define NBITS ((sizeof (int)) * 8) -/* - * these codes must all be different! - */ +/* Timeout in seconds for SMTP commands. + * Lore has it they must be distinct. */ #define SM_OPEN 300 /* Changed to 5 minutes to comply with a SHOULD in RFC 1123 */ #define SM_HELO 20 #define SM_RSET 15 #define SM_MAIL 301 /* changed to 5 minutes and a second (for uniqueness), see above */ #define SM_RCPT 302 /* see above */ #define SM_DATA 120 /* see above */ -#define SM_TEXT 180 /* see above */ #define SM_DOT 600 /* see above */ #define SM_QUIT 30 -#define SM_CLOS 10 -#define SM_AUTH 45 static int sm_addrs = 0; static int sm_child = NOTOK;