curl-library
[compile-warnings 1/3] fix smtp compile warning
From: Ben Greear <greearb_at_candelatech.com>
Date: Sat, 27 Mar 2010 23:45:16 -0700
Date: Sat, 27 Mar 2010 23:45:16 -0700
Use ssize_t instead of int for the Curl_smtp_escape_eob nread
argument.
Signed-off-by: Ben Greear <greearb_at_candelatech.com>
---
:100644 100644 7cbccba... 073925d... M lib/smtp.c
:100644 100644 3531a96... fac4304... M lib/smtp.h
lib/smtp.c | 2 +-
lib/smtp.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/smtp.c b/lib/smtp.c
index 7cbccba..073925d 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 3531a96..fac4304 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 */
--
1.6.2.5
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-28