Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/hash fix unaligned access lint warning.



details:   https://anonhg.NetBSD.org/src/rev/c1cce6017a43
branches:  trunk
changeset: 472599:c1cce6017a43
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 03 14:37:25 1999 +0000

description:
fix unaligned access lint warning.

diffstat:

 lib/libc/hash/sha1.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 5625d558127a -r c1cce6017a43 lib/libc/hash/sha1.c
--- a/lib/libc/hash/sha1.c      Mon May 03 14:35:46 1999 +0000
+++ b/lib/libc/hash/sha1.c      Mon May 03 14:37:25 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sha1.c,v 1.1 1999/02/04 05:08:58 explorer Exp $        */
+/*     $NetBSD: sha1.c,v 1.2 1999/05/03 14:37:25 christos Exp $        */
 /*     $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $       */
 
 /*
@@ -85,10 +85,10 @@
 
 #ifdef SHA1HANDSOFF
     static u_char workspace[64];
-    block = (CHAR64LONG16 *)workspace;
+    block = (CHAR64LONG16 *)(void *)workspace;
     (void)memcpy(block, buffer, 64);
 #else
-    block = (CHAR64LONG16 *)buffer;
+    block = (CHAR64LONG16 *)(void *)buffer;
 #endif
 
     /* Copy context->state[] to working vars */



Home | Main Index | Thread Index | Old Index