Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/hash - Need to #include <sys/endian.h>.



details:   https://anonhg.NetBSD.org/src/rev/19f5763ae54b
branches:  trunk
changeset: 494308:19f5763ae54b
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jul 05 13:51:32 2000 +0000

description:
- Need to #include <sys/endian.h>.
- ANSIfy.

diffstat:

 lib/libc/hash/rmd160.c |  21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diffs (67 lines):

diff -r 126645ac419e -r 19f5763ae54b lib/libc/hash/rmd160.c
--- a/lib/libc/hash/rmd160.c    Wed Jul 05 13:49:25 2000 +0000
+++ b/lib/libc/hash/rmd160.c    Wed Jul 05 13:51:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmd160.c,v 1.1 2000/07/05 11:44:03 ad Exp $    */
+/*     $NetBSD: rmd160.c,v 1.2 2000/07/05 13:51:32 ad Exp $    */
 
 /********************************************************************\
  *
@@ -20,11 +20,12 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rmd160.c,v 1.1 2000/07/05 11:44:03 ad Exp $");
+__RCSID("$NetBSD: rmd160.c,v 1.2 2000/07/05 13:51:32 ad Exp $");
 #endif /* not lint */
 
 /* header files */
 #include <sys/types.h>
+#include <sys/endian.h>
 
 #include "namespace.h"
 
@@ -110,8 +111,7 @@
 /********************************************************************/
 
 void
-RMD160Init(context)
-       RMD160_CTX *context;
+RMD160Init(RMD160_CTX *context)
 {
 
        /* ripemd-160 initialization constants */
@@ -127,9 +127,7 @@
 /********************************************************************/
 
 void
-RMD160Transform(state, block)
-       u_int32_t state[5];
-       const u_int32_t block[16];
+RMD160Transform(u_int32_t state[5], const u_int32_t block[16])
 {
        u_int32_t aa = state[0],  bb = state[1],  cc = state[2],
            dd = state[3],  ee = state[4];
@@ -328,10 +326,7 @@
 /********************************************************************/
 
 void
-RMD160Update(context, data, nbytes)
-       RMD160_CTX *context;
-       const u_char *data;
-       u_int32_t nbytes;
+RMD160Update(RMD160_CTX *context, const u_char *data, u_int32_t nbytes)
 {
        u_int32_t X[16];
        u_int32_t ofs = 0;
@@ -388,9 +383,7 @@
 /********************************************************************/
 
 void
-RMD160Final(digest, context)
-       u_char digest[20];
-       RMD160_CTX *context;
+RMD160Final(u_char digest[20], RMD160_CTX *context)
 {
        u_int32_t i;
        u_int32_t X[16];



Home | Main Index | Thread Index | Old Index