summaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-04-02 21:02:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-02 21:02:35 +0200
commite7e37a246a2ebd55b8b507e5a3d27744feff6203 (patch)
treeb020467fbc7c37f17b697103719098d8150cc23e /lib/smtp.c
parent78b284014bf32235722c63deb597cfb9f6a9366d (diff)
downloadcurl-e7e37a246a2ebd55b8b507e5a3d27744feff6203.tar.gz
fixed compiler warnings
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 2f7350b97..654f43505 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1045,8 +1045,8 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
* the data and make sure it is sent as CRLF..CRLF instead, as
* otherwise it will wrongly be detected as end of data by the server.
*/
- int i;
- int si;
+ ssize_t i;
+ ssize_t si;
struct smtp_conn *smtpc = &conn->proto.smtpc;
struct SessionHandle *data = conn->data;
@@ -1061,7 +1061,7 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
for(i = 0, si = 0; i < nread; i++, si++) {
ssize_t left = nread - i;
- if(left>= (SMTP_EOB_LEN-smtpc->eob)) {
+ if(left>= (ssize_t)(SMTP_EOB_LEN-smtpc->eob)) {
if(!memcmp(SMTP_EOB+smtpc->eob, &data->req.upload_fromhere[i],
SMTP_EOB_LEN-smtpc->eob)) {
/* It matched, copy the replacement data to the target buffer