summaryrefslogtreecommitdiff
path: root/lib/libc/hash/sha1.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-15 01:54:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-15 01:54:25 +0000
commit28d9c1750d3dfc4ddb8cb9056a18d073679ce6dd (patch)
treeb03d054c53210eda92ca1942982f651be0a7f94d /lib/libc/hash/sha1.c
parent25cd5ae9fcfc1df67e3f8ae81ad01e57b6184942 (diff)
Add a missing const
Diffstat (limited to 'lib/libc/hash/sha1.c')
-rw-r--r--lib/libc/hash/sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/hash/sha1.c b/lib/libc/hash/sha1.c
index 64ebf133dca..56df23605eb 100644
--- a/lib/libc/hash/sha1.c
+++ b/lib/libc/hash/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.c,v 1.7 1997/07/12 00:51:18 millert Exp $ */
+/* $OpenBSD: sha1.c,v 1.8 1997/07/15 01:54:24 millert Exp $ */
/*
* SHA-1 in C
@@ -50,7 +50,7 @@
*/
void SHA1Transform(state, buffer)
u_int32_t state[5];
- u_char buffer[64];
+ const u_char buffer[64];
{
u_int32_t a, b, c, d, e;
typedef union {
@@ -130,7 +130,7 @@ void SHA1Init(context)
*/
void SHA1Update(context, data, len)
SHA1_CTX *context;
- u_char *data;
+ const u_char *data;
u_int len;
{
u_int i, j;