diff options
author | silby <silby@FreeBSD.org> | 2003-01-25 22:41:22 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-01-25 22:41:22 +0000 |
commit | 5eab66f151592cc3e7278e5e7eb44d3a27217d8c (patch) | |
tree | c5a901c79ed5f0bdef6976defce365f3ca8f6bcd | |
parent | 07bd7704bce35d5ca213e9c81d11d456ffdba56d (diff) | |
download | FreeBSD-src-5eab66f151592cc3e7278e5e7eb44d3a27217d8c.zip FreeBSD-src-5eab66f151592cc3e7278e5e7eb44d3a27217d8c.tar.gz |
Remove some unnecessary casts.
-rw-r--r-- | sys/crypto/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/md5.c b/sys/crypto/md5.c index 318c6ac..3ce093e 100644 --- a/sys/crypto/md5.c +++ b/sys/crypto/md5.c @@ -177,15 +177,15 @@ void md5_pad(ctxt) /* Don't count up padding. Keep md5_n. */ gap = MD5_BUFLEN - ctxt->md5_i; if (gap > 8) { - bcopy((void *)md5_paddat, + bcopy(md5_paddat, (void *)(ctxt->md5_buf + ctxt->md5_i), gap - sizeof(ctxt->md5_n)); } else { /* including gap == 8 */ - bcopy((void *)md5_paddat, (void *)(ctxt->md5_buf + ctxt->md5_i), + bcopy(md5_paddat, (void *)(ctxt->md5_buf + ctxt->md5_i), gap); md5_calc(ctxt->md5_buf, ctxt); - bcopy((void *)(md5_paddat + gap), + bcopy((md5_paddat + gap), (void *)ctxt->md5_buf, MD5_BUFLEN - sizeof(ctxt->md5_n)); } |