summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arc4random/getentropy_osx.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_osx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_osx.c b/src/lib/libcrypto/arc4random/getentropy_osx.c
index dc17301fce..b0ffda8c09 100644
--- a/src/lib/libcrypto/arc4random/getentropy_osx.c
+++ b/src/lib/libcrypto/arc4random/getentropy_osx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_osx.c,v 1.6 2014/07/13 13:03:09 deraadt Exp $ */ 1/* $OpenBSD: getentropy_osx.c,v 1.7 2014/07/19 16:12:00 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>
@@ -77,9 +77,6 @@
77 77
78int getentropy(void *buf, size_t len); 78int getentropy(void *buf, size_t len);
79 79
80#if 0
81extern int main(int, char *argv[]);
82#endif
83static int gotdata(char *buf, size_t len); 80static int gotdata(char *buf, size_t len);
84static int getentropy_urandom(void *buf, size_t len); 81static int getentropy_urandom(void *buf, size_t len);
85static int getentropy_fallback(void *buf, size_t len); 82static int getentropy_fallback(void *buf, size_t len);
@@ -297,9 +294,6 @@ getentropy_fallback(void *buf, size_t len)
297 HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, 294 HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1,
298 sigset); 295 sigset);
299 296
300#if 0
301 HF(main); /* an addr in program */
302#endif
303 HF(getentropy); /* an addr in this library */ 297 HF(getentropy); /* an addr in this library */
304 HF(printf); /* an addr in libc */ 298 HF(printf); /* an addr in libc */
305 p = (char *)&p; 299 p = (char *)&p;