Mercurial > masqmail
diff src/smtp_in.c @ 15:f671821d8222
code beautifying; 0 -> \0 if appropriate
author | meillo@marmaro.de |
---|---|
date | Thu, 06 Nov 2008 09:18:38 +0100 |
parents | 26e34ae9a3e3 |
children | e5090ac234cf |
line wrap: on
line diff
--- a/src/smtp_in.c Wed Oct 29 21:21:26 2008 +0100 +++ b/src/smtp_in.c Thu Nov 06 09:18:38 2008 +0100 @@ -31,24 +31,15 @@ #ifdef ENABLE_SMTP_SERVER smtp_cmd smtp_cmds[] = { - {SMTP_HELO, "HELO",} - , - {SMTP_EHLO, "EHLO",} - , - {SMTP_MAIL_FROM, "MAIL FROM:",} - , - {SMTP_RCPT_TO, "RCPT TO:",} - , - {SMTP_DATA, "DATA",} - , - {SMTP_QUIT, "QUIT",} - , - {SMTP_RSET, "RSET",} - , - {SMTP_NOOP, "NOOP",} - , - {SMTP_HELP, "HELP"} - , + {SMTP_HELO, "HELO",}, + {SMTP_EHLO, "EHLO",}, + {SMTP_MAIL_FROM, "MAIL FROM:",}, + {SMTP_RCPT_TO, "RCPT TO:",}, + {SMTP_DATA, "DATA",}, + {SMTP_QUIT, "QUIT",}, + {SMTP_RSET, "RSET",}, + {SMTP_NOOP, "NOOP",}, + {SMTP_HELP, "HELP"}, }; static smtp_cmd_id @@ -65,7 +56,6 @@ /* this is a quick hack: we expect the address to be syntactically correct and containing the mailbox only: */ - static gboolean get_address(gchar * line, gchar * addr) {