From fb3e69db3b7c6a802e21eb6b53c7ec3551289c75 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 2 Nov 2009 14:04:28 +0000 Subject: [PATCH] 2009-11-02 Tatsuhiro Tsujikawa Fixed compile error without ssl library. * src/util.cc --- ChangeLog | 5 +++++ src/util.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9f130c7e..47ad5ba9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-02 Tatsuhiro Tsujikawa + + Fixed compile error without ssl library. + * src/util.cc + 2009-11-02 Tatsuhiro Tsujikawa Logged received nodes in get_peers reply message. diff --git a/src/util.cc b/src/util.cc index bcaa1a77..6652f2bc 100644 --- a/src/util.cc +++ b/src/util.cc @@ -836,7 +836,7 @@ void generateRandomData(unsigned char* data, size_t length) } #else std::ifstream i("/dev/urandom", std::ios::binary); - i.read(data, length); + i.read(reinterpret_cast(data), length); #endif // HAVE_LIBSSL }