]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-client - Replace smtp_*_warning() with e_warning().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 24 Dec 2018 00:23:57 +0000 (01:23 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Fri, 28 Jun 2019 07:09:25 +0000 (10:09 +0300)
src/lib-smtp/smtp-client-connection.c

index 6118b3c68168dfe477272881d66197a5c69a01d8..a0102ed5bb7bc525db75a635dd7f9dfe92e2c187 100644 (file)
@@ -98,17 +98,6 @@ smtp_client_connection_debug(struct smtp_client_connection *conn,
        va_end(args);
 }
 
-static inline void ATTR_FORMAT(2, 3)
-smtp_client_connection_warning(struct smtp_client_connection *conn,
-                              const char *format, ...)
-{
-       va_list args;
-
-       va_start(args, format);
-       e_warning(conn->event, "%s", t_strdup_vprintf(format, args));
-       va_end(args);
-}
-
 /*
  *
  */
@@ -930,9 +919,9 @@ smtp_client_connection_handshake_cb(const struct smtp_reply *reply,
 
                if (smtp_ehlo_line_parse(*lines,
                        &cap_name, &params, &error) <= 0) {
-                       smtp_client_connection_warning(conn,
-                               "Received invalid EHLO response line: %s",
-                               error);
+                       e_warning(conn->event,
+                                 "Received invalid EHLO response line: %s",
+                                 error);
                        lines++;
                        continue;
                }
@@ -947,9 +936,9 @@ smtp_client_connection_handshake_cb(const struct smtp_reply *reply,
                        if (params == NULL || *params == NULL)
                                break;
                        if (str_to_uoff(*params, &conn->caps.size) < 0) {
-                               smtp_client_connection_warning(conn,
-                                       "Received invalid SIZE capability "
-                                       "in EHLO response line");
+                               e_warning(conn->event,
+                                         "Received invalid SIZE capability "
+                                         "in EHLO response line");
                                cap = SMTP_CAPABILITY_NONE;
                        }
                        break;