summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-06-27 23:36:08 +1000
committerDamien Miller <djm@mindrot.org>2001-06-27 23:36:08 +1000
commit79b332dd6748980cf9c8af39e3194a7e272b9256 (patch)
treea0cbb7fba6e8746a658cd94d52ff45293e628c63 /entropy.c
parent649d999b4bab2d2ff5fadf7c77f2d685ece4708c (diff)
- (djm) Fix a few warnings the above turned up
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/entropy.c b/entropy.c
index 8bd540dc5..554a72b0d 100644
--- a/entropy.c
+++ b/entropy.c
@@ -40,7 +40,7 @@
40#include "pathnames.h" 40#include "pathnames.h"
41#include "log.h" 41#include "log.h"
42 42
43RCSID("$Id: entropy.c,v 1.36 2001/03/18 22:38:16 djm Exp $"); 43RCSID("$Id: entropy.c,v 1.37 2001/06/27 13:36:08 djm Exp $");
44 44
45#ifndef offsetof 45#ifndef offsetof
46# define offsetof(type, member) ((size_t) &((type *)0)->member) 46# define offsetof(type, member) ((size_t) &((type *)0)->member)
@@ -68,7 +68,7 @@ RCSID("$Id: entropy.c,v 1.36 2001/03/18 22:38:16 djm Exp $");
68# define SAVED_IDS_WORK_WITH_SETEUID 68# define SAVED_IDS_WORK_WITH_SETEUID
69#endif 69#endif
70 70
71void 71static void
72check_openssl_version(void) 72check_openssl_version(void)
73{ 73{
74 if (SSLeay() != OPENSSL_VERSION_NUMBER) 74 if (SSLeay() != OPENSSL_VERSION_NUMBER)
@@ -182,7 +182,7 @@ done:
182#else /* !USE_PRNGD */ 182#else /* !USE_PRNGD */
183#ifdef RANDOM_POOL 183#ifdef RANDOM_POOL
184/* Collect entropy from /dev/urandom or pipe */ 184/* Collect entropy from /dev/urandom or pipe */
185int 185static int
186get_random_bytes(unsigned char *buf, int len) 186get_random_bytes(unsigned char *buf, int len)
187{ 187{
188 int random_pool; 188 int random_pool;