fix smtp compile warning
authorBen Greear <greearb@candelatech.com>
Sun, 28 Mar 2010 06:45:16 +0000 (08:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2010 14:03:38 +0000 (16:03 +0200)
Use ssize_t instead of int for the Curl_smtp_escape_eob nread
argument.

Signed-off-by: Ben Greear <greearb@candelatech.com>
lib/smtp.c
lib/smtp.h

index 7cbccba..073925d 100644 (file)
@@ -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
index 3531a96..fac4304 100644 (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_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 */