fix smtp compile warning

Use ssize_t instead of int for the Curl_smtp_escape_eob nread
argument.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2010-03-28 08:45:16 +02:00 committed by Daniel Stenberg
parent 604a2bdac8
commit 3ec7543007
2 changed files with 2 additions and 2 deletions

View File

@ -1039,7 +1039,7 @@ static CURLcode smtp_setup_connection(struct connectdata * conn)
return CURLE_OK; 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 /* When sending SMTP payload, we must detect CRLF.CRLF sequences in
* the data and make sure it is sent as CRLF..CRLF instead, as * the data and make sure it is sent as CRLF..CRLF instead, as

View File

@ -64,6 +64,6 @@ extern const struct Curl_handler Curl_handler_smtps;
#define SMTP_EOB_REPL "\x0d\x0a\x2e\x2e" #define SMTP_EOB_REPL "\x0d\x0a\x2e\x2e"
#define SMTP_EOB_REPL_LEN 4 #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 */ #endif /* __SMTP_H */