summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-03-22 09:51:47 +0000
committeragc <agc@pkgsrc.org>2001-03-22 09:51:47 +0000
commitd33b36cd214ebc0b2ebeafba9bcc82df6da29531 (patch)
tree819c07effeca688af181a7b8a69f7b4846e3c934 /pkgtools/digest/files
parent0904d0520df93ece3e28d7497a55b9d1e230e656 (diff)
downloadpkgsrc-d33b36cd214ebc0b2ebeafba9bcc82df6da29531.tar.gz
Align correctly on LP64 platforms - from Andrew Brown and Simon Burge.
Bump version string accordingly
Diffstat (limited to 'pkgtools/digest/files')
-rw-r--r--pkgtools/digest/files/sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/digest/files/sha1.c b/pkgtools/digest/files/sha1.c
index 4f6ccd615e2..1aa01118555 100644
--- a/pkgtools/digest/files/sha1.c
+++ b/pkgtools/digest/files/sha1.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sha1.c,v 1.1.1.1 2001/03/06 11:21:05 agc Exp $ */
+/* $NetBSD: sha1.c,v 1.2 2001/03/22 09:51:48 agc Exp $ */
/* $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ */
/*
@@ -143,14 +143,14 @@ void SHA1Transform(state, buffer)
CHAR64LONG16 *block;
#ifdef SHA1HANDSOFF
- static u_char workspace[64];
+ CHAR64LONG16 workspace;
#endif
_DIAGASSERT(buffer != 0);
_DIAGASSERT(state != 0);
#ifdef SHA1HANDSOFF
- block = (CHAR64LONG16 *)(void *)workspace;
+ block = &workspace;
(void)memcpy(block, buffer, 64);
#else
block = (CHAR64LONG16 *)(void *)buffer;