aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c2
-rw-r--r--lib/smtp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 7cbccba08..073925d1b 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1039,7 +1039,7 @@ static CURLcode smtp_setup_connection(struct connectdata * conn)
return CURLE_OK;
}
-CURLcode Curl_smtp_escape_eob(struct connectdata *conn, int nread)
+CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
{
/* When sending SMTP payload, we must detect CRLF.CRLF sequences in
* the data and make sure it is sent as CRLF..CRLF instead, as
diff --git a/lib/smtp.h b/lib/smtp.h
index 3531a9652..fac43041a 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -64,6 +64,6 @@ extern const struct Curl_handler Curl_handler_smtps;
#define SMTP_EOB_REPL "\x0d\x0a\x2e\x2e"
#define SMTP_EOB_REPL_LEN 4
-CURLcode Curl_smtp_escape_eob(struct connectdata *conn, int nread);
+CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread);
#endif /* __SMTP_H */