]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: Reformat smtp-server-reply.c.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 15 Aug 2023 23:14:29 +0000 (01:14 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 29 Aug 2023 12:52:24 +0000 (12:52 +0000)
src/lib-smtp/smtp-server-reply.c

index 39dd6bf6a5897bc4f54e7814b91d872f2bdd9e73..2ded9a8dd76a199c53227e2254d461271926fac3 100644 (file)
@@ -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;