summaryrefslogtreecommitdiffstats
path: root/sys/crypto/cryptosoft.c
diff options
context:
space:
mode:
authorpedro <pedro@openbsd.org>2006-12-29 13:04:36 +0000
committerpedro <pedro@openbsd.org>2006-12-29 13:04:36 +0000
commit3957c1c0dd055b84a319a09f7e8d5c895bae578f (patch)
tree1a77ab756ae09dacc0bc4427fce2890437a06a20 /sys/crypto/cryptosoft.c
parentFix another 'tripple' (not surprising, since this was copied from the (diff)
downloadwireguard-openbsd-3957c1c0dd055b84a319a09f7e8d5c895bae578f.tar.xz
wireguard-openbsd-3957c1c0dd055b84a319a09f7e8d5c895bae578f.zip
Avoid void * arithmetic, okay deraadt@, suggestions from millert@
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r--sys/crypto/cryptosoft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c
index a96a317dd71..470d2c73ca0 100644
--- a/sys/crypto/cryptosoft.c
+++ b/sys/crypto/cryptosoft.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptosoft.c,v 1.45 2005/05/25 05:47:53 markus Exp $ */
+/* $OpenBSD: cryptosoft.c,v 1.46 2006/12/29 13:04:37 pedro Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -330,7 +330,7 @@ swcr_encdec(struct cryptodesc *crd, struct swcr_data *sw, caddr_t buf,
* we only use it in the while() loop, only if
* there are indeed enough data.
*/
- idat = uio->uio_iov[ind].iov_base + k;
+ idat = (char *)uio->uio_iov[ind].iov_base + k;
while (uio->uio_iov[ind].iov_len >= k + blks &&
i > 0) {