diff options
author | deraadt <> | 2014-07-19 16:12:00 +0000 |
---|---|---|
committer | deraadt <> | 2014-07-19 16:12:00 +0000 |
commit | db0047c9f0fd9f8fef73fe2f86eb45d65ba8e7cd (patch) | |
tree | da1d9f314c2080d67df6770fc4dfdb7ff0df4234 /src/lib/libcrypto/crypto/getentropy_linux.c | |
parent | 66d2e2d19d39069d8410d57d0297958ff10c19e8 (diff) | |
download | openbsd-db0047c9f0fd9f8fef73fe2f86eb45d65ba8e7cd.tar.gz openbsd-db0047c9f0fd9f8fef73fe2f86eb45d65ba8e7cd.tar.bz2 openbsd-db0047c9f0fd9f8fef73fe2f86eb45d65ba8e7cd.zip |
remove disabled main hook; we use phdr now; ok bcook
Diffstat (limited to 'src/lib/libcrypto/crypto/getentropy_linux.c')
-rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index b0223237d0..04f21e147b 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.26 2014/07/19 16:10:50 deraadt Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.27 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> |
@@ -73,9 +73,6 @@ | |||
73 | 73 | ||
74 | int getentropy(void *buf, size_t len); | 74 | int getentropy(void *buf, size_t len); |
75 | 75 | ||
76 | #if 0 | ||
77 | extern int main(int, char *argv[]); | ||
78 | #endif | ||
79 | static int gotdata(char *buf, size_t len); | 76 | static int gotdata(char *buf, size_t len); |
80 | static int getentropy_urandom(void *buf, size_t len); | 77 | static int getentropy_urandom(void *buf, size_t len); |
81 | #ifdef CTL_MAXNAME | 78 | #ifdef CTL_MAXNAME |
@@ -360,9 +357,6 @@ getentropy_fallback(void *buf, size_t len) | |||
360 | HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, | 357 | HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, |
361 | sigset); | 358 | sigset); |
362 | 359 | ||
363 | #if 0 | ||
364 | HF(main); /* an addr in program */ | ||
365 | #endif | ||
366 | HF(getentropy); /* an addr in this library */ | 360 | HF(getentropy); /* an addr in this library */ |
367 | HF(printf); /* an addr in libc */ | 361 | HF(printf); /* an addr in libc */ |
368 | p = (char *)&p; | 362 | p = (char *)&p; |