chiark / gitweb /
integer arithmetic types: do not use unsigned for lengths
[secnet.git] / md5.c
diff --git a/md5.c b/md5.c
index 0ce120004490026b46beb0d1966cf00e15632dd5..9a4dcc3795d3c1dfd7b1f58f27368e6ab7bc15c2 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -26,7 +26,7 @@
 
 #ifdef WORDS_BIGENDIAN
 static void
-byteSwap(uint32_t *buf, unsigned words)
+byteSwap(uint32_t *buf, int words)
 {
        md5byte *p = (md5byte *)buf;
 
@@ -247,7 +247,7 @@ static void *md5_init(void)
     return ctx;
 }
 
-static void md5_update(void *sst, uint8_t const *buf, uint32_t len)
+static void md5_update(void *sst, uint8_t const *buf, int32_t len)
 {
     struct MD5Context *ctx=sst;