summaryrefslogtreecommitdiff
path: root/lib/md4.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
committerYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
commitc6825b7a6b5e8798bc861b3d280430e8149e7298 (patch)
tree7647999b7351ab4330f2218622fcfbc1469cb975 /lib/md4.c
parente6a89cb6c4f0ed51a41425cf78a56394f397c5e5 (diff)
downloadcurl-c6825b7a6b5e8798bc861b3d280430e8149e7298.tar.gz
fix several compiler warnings
Diffstat (limited to 'lib/md4.c')
-rw-r--r--lib/md4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/md4.c b/lib/md4.c
index 828ce6277..cf6c36023 100644
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -27,6 +27,7 @@
#ifdef USE_NSS
#include "curl_md4.h"
+#include "warnless.h"
typedef unsigned int UINT4;
@@ -275,7 +276,7 @@ void Curl_md4it(unsigned char *output, const unsigned char *input, size_t len)
{
MD4_CTX ctx;
MD4Init(&ctx);
- MD4Update(&ctx, input, (unsigned int)len);
+ MD4Update(&ctx, input, curlx_uztoui(len));
MD4Final(output, &ctx);
}
#endif /* USE_NSS */