summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_linux.c4
-rw-r--r--src/lib/libcrypto/crypto/getentropy_linux.c4
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)