diff options
author | deraadt <> | 2014-07-21 19:15:56 +0000 |
---|---|---|
committer | deraadt <> | 2014-07-21 19:15:56 +0000 |
commit | 73be6bb9aaf4024e2879d17858a2de7863fea9f5 (patch) | |
tree | c44a940d179d8aaa7a5e2f6f00a503f618c34fd8 /src | |
parent | 07d822ea8c9ec700f324f8c30af2e4e49fcabb93 (diff) | |
download | openbsd-73be6bb9aaf4024e2879d17858a2de7863fea9f5.tar.gz openbsd-73be6bb9aaf4024e2879d17858a2de7863fea9f5.tar.bz2 openbsd-73be6bb9aaf4024e2879d17858a2de7863fea9f5.zip |
cast from void * before math; enh@google
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/arc4random/getentropy_linux.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index 2ad844624f..6947102136 100644 --- a/src/lib/libcrypto/arc4random/getentropy_linux.c +++ b/src/lib/libcrypto/arc4random/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.28 2014/07/20 03:24:10 deraadt Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.29 2014/07/21 19:15:56 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -285,7 +285,7 @@ getentropy_sysctl(void *buf, size_t len) | |||
285 | struct __sysctl_args args = { | 285 | struct __sysctl_args args = { |
286 | .name = mib, | 286 | .name = mib, |
287 | .nlen = 3, | 287 | .nlen = 3, |
288 | .oldval = buf + i, | 288 | .oldval = (char *)buf + i, |
289 | .oldlenp = &chunk, | 289 | .oldlenp = &chunk, |
290 | }; | 290 | }; |
291 | if (syscall(SYS__sysctl, &args) != 0) | 291 | if (syscall(SYS__sysctl, &args) != 0) |
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index 2ad844624f..6947102136 100644 --- a/src/lib/libcrypto/crypto/getentropy_linux.c +++ b/src/lib/libcrypto/crypto/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.28 2014/07/20 03:24:10 deraadt Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.29 2014/07/21 19:15:56 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -285,7 +285,7 @@ getentropy_sysctl(void *buf, size_t len) | |||
285 | struct __sysctl_args args = { | 285 | struct __sysctl_args args = { |
286 | .name = mib, | 286 | .name = mib, |
287 | .nlen = 3, | 287 | .nlen = 3, |
288 | .oldval = buf + i, | 288 | .oldval = (char *)buf + i, |
289 | .oldlenp = &chunk, | 289 | .oldlenp = &chunk, |
290 | }; | 290 | }; |
291 | if (syscall(SYS__sysctl, &args) != 0) | 291 | if (syscall(SYS__sysctl, &args) != 0) |