summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-21 19:15:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-21 19:15:57 +0000
commitaa323d2d99207091295a628b78db71449c377704 (patch)
tree7ca81f8383adf5b8d20fe016cf924d3fc1a18303 /lib/libcrypto
parentb047e6d990dae0d39f171495eba30704e7ba5134 (diff)
cast from void * before math; enh@google
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/arc4random/getentropy_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c
index 2ad844624f1..6947102136e 100644
--- a/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/lib/libcrypto/arc4random/getentropy_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getentropy_linux.c,v 1.28 2014/07/20 03:24:10 deraadt Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.29 2014/07/21 19:15:56 deraadt Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -285,7 +285,7 @@ getentropy_sysctl(void *buf, size_t len)
struct __sysctl_args args = {
.name = mib,
.nlen = 3,
- .oldval = buf + i,
+ .oldval = (char *)buf + i,
.oldlenp = &chunk,
};
if (syscall(SYS__sysctl, &args) != 0)