From: Stephan Bosch Date: Mon, 31 Aug 2020 12:44:25 +0000 (+0200) Subject: lib-smtp: smtp-server-command - Move smtp_server_command_ready_to_reply(). X-Git-Tag: 2.3.13~237 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cae0ff5c8aed7f6b4699120bc8c6f70a08a720a;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: smtp-server-command - Move smtp_server_command_ready_to_reply(). New order makes more sense in the progression of command state. --- diff --git a/src/lib-smtp/smtp-server-command.c b/src/lib-smtp/smtp-server-command.c index 73b85c3642..6edabf46c0 100644 --- a/src/lib-smtp/smtp-server-command.c +++ b/src/lib-smtp/smtp-server-command.c @@ -459,13 +459,6 @@ smtp_server_command_get_reply_count(struct smtp_server_command *cmd) return cmd->replies_expected; } -void smtp_server_command_ready_to_reply(struct smtp_server_command *cmd) -{ - cmd->state = SMTP_SERVER_COMMAND_STATE_READY_TO_REPLY; - e_debug(cmd->context.event, "Ready to reply"); - smtp_server_connection_trigger_output(cmd->context.conn); -} - bool smtp_server_command_next_to_reply(struct smtp_server_command **_cmd) { struct smtp_server_command *cmd = *_cmd; @@ -476,6 +469,13 @@ bool smtp_server_command_next_to_reply(struct smtp_server_command **_cmd) _cmd, SMTP_SERVER_COMMAND_HOOK_NEXT, TRUE); } +void smtp_server_command_ready_to_reply(struct smtp_server_command *cmd) +{ + cmd->state = SMTP_SERVER_COMMAND_STATE_READY_TO_REPLY; + e_debug(cmd->context.event, "Ready to reply"); + smtp_server_connection_trigger_output(cmd->context.conn); +} + static bool smtp_server_command_replied(struct smtp_server_command **_cmd) {