summaryrefslogtreecommitdiffstats
path: root/lib/md5.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:26 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:26 +0200
commit24873f0c06e6196a105f648e8fe29d19dcddd1de (patch)
treef0ad6ae52390a9ed3b63c6fe228da30f5cf92d7b /lib/md5.c
parentbgpd: bgpd-no-as.patch (diff)
downloadfrr-24873f0c06e6196a105f648e8fe29d19dcddd1de.tar.xz
frr-24873f0c06e6196a105f648e8fe29d19dcddd1de.zip
lib: lib-warnings.patch
Remove compile warnings for the lib directory Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 2fc36e179..80522b6dd 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -360,7 +360,7 @@ caddr_t digest; /* caller digest to be filled in */
* pass */
MD5Update(&context, k_ipad, 64); /* start with inner pad */
MD5Update(&context, text, text_len); /* then text of datagram */
- MD5Final(digest, &context); /* finish up 1st pass */
+ MD5Final((uint8_t *)digest, &context); /* finish up 1st pass */
/*
* perform outer MD5
*/
@@ -369,5 +369,5 @@ caddr_t digest; /* caller digest to be filled in */
MD5Update(&context, k_opad, 64); /* start with outer pad */
MD5Update(&context, digest, 16); /* then results of 1st
* hash */
- MD5Final(digest, &context); /* finish up 2nd pass */
+ MD5Final((uint8_t *)digest, &context); /* finish up 2nd pass */
}