diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-20 18:28:24 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-20 18:28:24 +0100 |
commit | c6825b7a6b5e8798bc861b3d280430e8149e7298 (patch) | |
tree | 7647999b7351ab4330f2218622fcfbc1469cb975 /lib/smtp.c | |
parent | e6a89cb6c4f0ed51a41425cf78a56394f397c5e5 (diff) | |
download | curl-c6825b7a6b5e8798bc861b3d280430e8149e7298.tar.gz |
fix several compiler warnings
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 4c3c512a8..83edb42b8 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -757,7 +757,7 @@ static CURLcode smtp_state_authcram_resp(struct connectdata *conn, /* Compute digest. */ ctxt = Curl_HMAC_init(Curl_HMAC_MD5, (const unsigned char *) conn->passwd, - (unsigned int)(strlen(conn->passwd))); + curlx_uztoui(strlen(conn->passwd))); if(!ctxt) { Curl_safefree(chlg); @@ -765,7 +765,7 @@ static CURLcode smtp_state_authcram_resp(struct connectdata *conn, } if(chlglen > 0) - Curl_HMAC_update(ctxt, chlg, (unsigned int)(chlglen)); + Curl_HMAC_update(ctxt, chlg, curlx_uztoui(chlglen)); Curl_safefree(chlg); |