diff options
author | archie <archie@FreeBSD.org> | 2000-04-09 20:10:55 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-04-09 20:10:55 +0000 |
commit | a06297ebe60ed750cf630e6c3fe49cdfea80b8cc (patch) | |
tree | 9e12502ca8f410b2844d0d2b02be5370fe01ff03 /sys/crypto | |
parent | e0670dffd32bc05db72bd8b648f8f78894809bad (diff) | |
download | FreeBSD-src-a06297ebe60ed750cf630e6c3fe49cdfea80b8cc.zip FreeBSD-src-a06297ebe60ed750cf630e6c3fe49cdfea80b8cc.tar.gz |
Fix bogus const-ness in declaration of sha1_loop().
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/sha1.c | 6 | ||||
-rw-r--r-- | sys/crypto/sha1.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c index 8918837..337f944 100644 --- a/sys/crypto/sha1.c +++ b/sys/crypto/sha1.c @@ -218,18 +218,16 @@ sha1_pad(ctxt) } void -sha1_loop(ctxt, input0, len) +sha1_loop(ctxt, input, len) struct sha1_ctxt *ctxt; - const caddr_t input0; + const u_char *input; size_t len; { - u_int8_t *input; size_t gaplen; size_t gapstart; size_t off; size_t copysiz; - input = (u_int8_t *)input0; off = 0; while (off < len) { diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h index f246ffe..dc7966c 100644 --- a/sys/crypto/sha1.h +++ b/sys/crypto/sha1.h @@ -56,7 +56,7 @@ struct sha1_ctxt { #ifdef _KERNEL extern void sha1_init __P((struct sha1_ctxt *)); extern void sha1_pad __P((struct sha1_ctxt *)); -extern void sha1_loop __P((struct sha1_ctxt *, const caddr_t, size_t)); +extern void sha1_loop __P((struct sha1_ctxt *, const u_char *, size_t)); extern void sha1_result __P((struct sha1_ctxt *, caddr_t)); /* compatibilty with other SHA1 source codes */ |