summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:50:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 14:32:24 +0100
commit4479006955a6ae8458e42c87ac2aee169a67d243 (patch)
treeda38dba060a6d5840a48225e616eb107b9620d4d
parent61e3d1ad1e13abcdd0d10cafe098cbd6fccd6e10 (diff)
downloadrtems-4479006955a6ae8458e42c87ac2aee169a67d243.tar.bz2
libmd: Change MD5Update() prototype
This is in line with the FreeBSD and OpenSSL prototypes. It helps to avoid superfluous compiler warnings.
-rw-r--r--cpukit/libmd/md5.c5
-rw-r--r--cpukit/libmd/md5.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libmd/md5.c b/cpukit/libmd/md5.c
index fa64a122af..4c909f37a0 100644
--- a/cpukit/libmd/md5.c
+++ b/cpukit/libmd/md5.c
@@ -125,12 +125,15 @@ void MD5Init (
*/
void MD5Update (
MD5_CTX *mdContext,
- const unsigned char *inBuf,
+ const void *inBufArg,
unsigned int inLen )
{
UINT4 in[16];
int mdi;
unsigned int i, ii;
+ const unsigned char *inBuf;
+
+ inBuf = inBufArg;
/* compute number of bytes mod 64 */
mdi = (int)((mdContext->i[0] >> 3) & 0x3F);
diff --git a/cpukit/libmd/md5.h b/cpukit/libmd/md5.h
index 450cb9f537..ca48d61d7b 100644
--- a/cpukit/libmd/md5.h
+++ b/cpukit/libmd/md5.h
@@ -60,7 +60,7 @@ typedef struct {
} MD5_CTX;
void MD5Init (MD5_CTX *);
-void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
+void MD5Update (MD5_CTX *, const void *, unsigned int);
void MD5Final (unsigned char [16], MD5_CTX *);
#ifdef __cplusplus