aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-10-07 22:36:33 +0000
committerGuy Harris <guy@alum.mit.edu>2009-10-07 22:36:33 +0000
commit3f8748951f3eb6d2c559977402046211d1288967 (patch)
treeeef0c204cd102e3b0e99611dec38808b24e164c3 /epan/crypt
parent4c70f4fad0f334c16fad0f876042aa699aad7236 (diff)
Fix some LLP64 issues.
svn path=/trunk/; revision=30393
Diffstat (limited to 'epan/crypt')
-rw-r--r--epan/crypt/crypt-md4.c4
-rw-r--r--epan/crypt/crypt-md4.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/crypt/crypt-md4.c b/epan/crypt/crypt-md4.c
index cbc41bd2dd..29f993a1b5 100644
--- a/epan/crypt/crypt-md4.c
+++ b/epan/crypt/crypt-md4.c
@@ -127,11 +127,11 @@ static void copy4(unsigned char *out, guint32 x)
}
/* produce a md4 message digest from data of length n bytes */
-void crypt_md4(unsigned char *out, const unsigned char *in, int n)
+void crypt_md4(unsigned char *out, const unsigned char *in, size_t n)
{
unsigned char buf[128];
guint32 M[16];
- guint32 b = n * 8;
+ guint32 b = (guint32)(n * 8);
int i;
A = 0x67452301;
diff --git a/epan/crypt/crypt-md4.h b/epan/crypt/crypt-md4.h
index 17b251d1da..2db43750b7 100644
--- a/epan/crypt/crypt-md4.h
+++ b/epan/crypt/crypt-md4.h
@@ -20,4 +20,4 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-void crypt_md4(unsigned char *out, const unsigned char *in, int n);
+void crypt_md4(unsigned char *out, const unsigned char *in, size_t n);