[rtems commit] libmd: Change MD5Update() prototype

Sebastian Huber sebh at rtems.org
Thu Oct 31 13:26:32 UTC 2013


Module:    rtems
Branch:    master
Commit:    4479006955a6ae8458e42c87ac2aee169a67d243
Changeset: http://git.rtems.org/rtems/commit/?id=4479006955a6ae8458e42c87ac2aee169a67d243

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 31 13:50:49 2013 +0100

libmd: Change MD5Update() prototype

This is in line with the FreeBSD and OpenSSL prototypes.  It helps to
avoid superfluous compiler warnings.

---

 cpukit/libmd/md5.c |    5 ++++-
 cpukit/libmd/md5.h |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cpukit/libmd/md5.c b/cpukit/libmd/md5.c
index fa64a12..4c909f3 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 450cb9f..ca48d61 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




More information about the vc mailing list