From ee0c82f4138ba42f5921e95e1d4ed776d5c77d00 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 2 Aug 2008 05:16:26 +0000 Subject: Add missing prototypes. --- cpukit/libmd/md4.c | 20 ++++++++++---------- cpukit/libmd/md5.c | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'cpukit/libmd') diff --git a/cpukit/libmd/md4.c b/cpukit/libmd/md4.c index 9d3b9d0a80..4060cce4f7 100644 --- a/cpukit/libmd/md4.c +++ b/cpukit/libmd/md4.c @@ -121,9 +121,9 @@ MD4_CTX *MDp; ** This routine is not user-callable. */ static void -MDblock(MDp,Xb) -MD4_CTX *MDp; -unsigned char *Xb; +MDblock( + MD4_CTX *MDp, + unsigned char *Xb) { register uint32_t tmp, A, B, C, D; uint32_t X[16]; @@ -208,10 +208,10 @@ unsigned char *Xb; ** if desired. */ void -MD4Update(MDp,X,count) -MD4_CTX *MDp; -unsigned char *X; -unsigned int count; +MD4Update( + MD4_CTX *MDp, + unsigned char *X, + unsigned int count ) { unsigned int i, tmp, bit, byte, mask; unsigned char XX[64]; @@ -278,9 +278,9 @@ unsigned int count; ** Finish up MD4 computation and return message digest. */ void -MD4Final(buf, MD) -unsigned char *buf; -MD4_CTX *MD; +MD4Final( + unsigned char *buf, + MD4_CTX *MD) { int i, j; unsigned int w; diff --git a/cpukit/libmd/md5.c b/cpukit/libmd/md5.c index afabb6028e..cf7ee12132 100644 --- a/cpukit/libmd/md5.c +++ b/cpukit/libmd/md5.c @@ -49,7 +49,7 @@ */ /* forward declaration */ -static void Transform (); +static void Transform (UINT4 *buf, UINT4 *in); static unsigned char PADDING[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -201,9 +201,9 @@ MD5_CTX *mdContext; /* Basic MD5 step. Transforms buf based on in. */ -static void Transform (buf, in) -UINT4 *buf; -UINT4 *in; +static void Transform ( + UINT4 *buf, + UINT4 *in ) { UINT4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; -- cgit v1.2.3