aboutsummaryrefslogtreecommitdiffstats
path: root/md5ify.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-01-11 10:51:28 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-01-11 10:51:28 +0000
commit7ff1619df0d9c4fc58119bd23e8e6904679db8b6 (patch)
tree40990bea5032b5330125ece444a854efa5ac1f56 /md5ify.c
parentfa8953f9f0852d1bc9baaee927500a98998fb97b (diff)
downloadfetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.tar.gz
fetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.tar.bz2
fetchmail-7ff1619df0d9c4fc58119bd23e8e6904679db8b6.zip
Fix a few compiler warnings through casts.
Make MD5Update argument const. svn path=/branches/BRANCH_6-3/; revision=4621
Diffstat (limited to 'md5ify.c')
-rw-r--r--md5ify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/md5ify.c b/md5ify.c
index 79980d1c..8d5c8807 100644
--- a/md5ify.c
+++ b/md5ify.c
@@ -20,7 +20,7 @@
#include "md5.h"
char *
-MD5Digest (unsigned char *s)
+MD5Digest (unsigned const char *s)
{
int i;
MD5_CTX context;
@@ -28,9 +28,9 @@ MD5Digest (unsigned char *s)
static char ascii_digest [33];
MD5Init(&context);
- MD5Update(&context, s, strlen(s));
+ MD5Update(&context, s, strlen((const char *)s));
MD5Final(digest, &context);
-
+
for (i = 0; i < 16; i++)
sprintf(ascii_digest+2*i, "%02x", digest[i]);