From: Stephan Bosch Date: Tue, 15 Aug 2023 23:14:29 +0000 (+0200) Subject: lib-smtp: Reformat smtp-server-reply.c. X-Git-Tag: 2.4.0~2608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06fccaaca66214ebfa27488860ecbfc0d5115b8a;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: Reformat smtp-server-reply.c. --- diff --git a/src/lib-smtp/smtp-server-reply.c b/src/lib-smtp/smtp-server-reply.c index 39dd6bf6a5..2ded9a8dd7 100644 --- a/src/lib-smtp/smtp-server-reply.c +++ b/src/lib-smtp/smtp-server-reply.c @@ -217,7 +217,8 @@ smtp_server_reply_create(struct smtp_server_command *cmd, struct smtp_server_reply * smtp_server_reply_create_forward(struct smtp_server_command *cmd, - unsigned int index, const struct smtp_reply *from) + unsigned int index, + const struct smtp_reply *from) { struct smtp_server_reply *reply; string_t *textbuf; @@ -300,8 +301,7 @@ void smtp_server_reply_add_text(struct smtp_server_reply *reply, } while (text != NULL && *text != '\0'); } -static size_t -smtp_server_reply_get_path_len(struct smtp_server_reply *reply) +static size_t smtp_server_reply_get_path_len(struct smtp_server_reply *reply) { size_t prefix_len = strlen(reply->content->status_prefix); size_t text_len = str_len(reply->content->text), line_len, path_len; @@ -425,8 +425,9 @@ void smtp_server_reply_submit_duplicate(struct smtp_server_cmd_ctx *_cmd, } void smtp_server_reply_indexv(struct smtp_server_cmd_ctx *_cmd, - unsigned int index, unsigned int status, const char *enh_code, - const char *fmt, va_list args) + unsigned int index, unsigned int status, + const char *enh_code, + const char *fmt, va_list args) { struct smtp_server_command *cmd = _cmd->cmd; struct smtp_server_reply *reply; @@ -436,8 +437,8 @@ void smtp_server_reply_indexv(struct smtp_server_cmd_ctx *_cmd, smtp_server_reply_submit(reply); } -void smtp_server_reply(struct smtp_server_cmd_ctx *_cmd, - unsigned int status, const char *enh_code, const char *fmt, ...) +void smtp_server_reply(struct smtp_server_cmd_ctx *_cmd, unsigned int status, + const char *enh_code, const char *fmt, ...) { struct smtp_server_command *cmd = _cmd->cmd; va_list args; @@ -450,8 +451,8 @@ void smtp_server_reply(struct smtp_server_cmd_ctx *_cmd, } void smtp_server_reply_index(struct smtp_server_cmd_ctx *_cmd, - unsigned int index, unsigned int status, const char *enh_code, - const char *fmt, ...) + unsigned int index, unsigned int status, + const char *enh_code, const char *fmt, ...) { va_list args; @@ -461,7 +462,8 @@ void smtp_server_reply_index(struct smtp_server_cmd_ctx *_cmd, } void smtp_server_reply_index_forward(struct smtp_server_cmd_ctx *cmd, - unsigned int index, const struct smtp_reply *from) + unsigned int index, + const struct smtp_reply *from) { smtp_server_reply_submit( smtp_server_reply_create_forward(cmd->cmd, index, from)); @@ -707,7 +709,8 @@ void smtp_server_reply_ehlo_add(struct smtp_server_reply *reply, } void smtp_server_reply_ehlo_add_param(struct smtp_server_reply *reply, - const char *keyword, const char *param_fmt, ...) + const char *keyword, + const char *param_fmt, ...) { va_list args; string_t *textbuf;