Fix bogus const-ness in declaration of sha1_loop().

This commit is contained in:
Archie Cobbs 2000-04-09 20:10:55 +00:00
parent 2d6fdfda46
commit 3a83eefb2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59107
2 changed files with 3 additions and 5 deletions

View File

@ -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) {

View File

@ -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 */