From de07feb28f4343894415731cea827e9e25aca444 Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 18 Jul 2007 16:58:14 +0000 Subject: [PATCH] cast to void* to avoid a fatal warning --- common/lib/libc/hash/sha2/sha2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/libc/hash/sha2/sha2.c b/common/lib/libc/hash/sha2/sha2.c index 80c869b9727b..ebaef999520b 100644 --- a/common/lib/libc/hash/sha2/sha2.c +++ b/common/lib/libc/hash/sha2/sha2.c @@ -1,4 +1,4 @@ -/* $NetBSD: sha2.c,v 1.5 2007/07/18 13:57:54 joerg Exp $ */ +/* $NetBSD: sha2.c,v 1.6 2007/07/18 16:58:14 drochner Exp $ */ /* $KAME: sha2.c,v 1.9 2003/07/20 00:28:38 itojun Exp $ */ /* @@ -39,14 +39,14 @@ #include #if defined(_KERNEL) || defined(_STANDALONE) -__KERNEL_RCSID(0, "$NetBSD: sha2.c,v 1.5 2007/07/18 13:57:54 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sha2.c,v 1.6 2007/07/18 16:58:14 drochner Exp $"); #include #else #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: sha2.c,v 1.5 2007/07/18 13:57:54 joerg Exp $"); +__RCSID("$NetBSD: sha2.c,v 1.6 2007/07/18 16:58:14 drochner Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -887,7 +887,7 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) { while (len >= SHA512_BLOCK_LENGTH) { memcpy(context->buffer, data, SHA512_BLOCK_LENGTH); SHA512_Transform(context, - (const sha2_word64*)context->buffer); + (const void *)context->buffer); ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); len -= SHA512_BLOCK_LENGTH; data += SHA512_BLOCK_LENGTH;