2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed compile error without ssl library.
	* src/util.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-11-02 14:04:28 +00:00
parent f794df7d9b
commit fb3e69db3b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compile error without ssl library.
* src/util.cc
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Logged received nodes in get_peers reply message. Logged received nodes in get_peers reply message.

View File

@ -836,7 +836,7 @@ void generateRandomData(unsigned char* data, size_t length)
} }
#else #else
std::ifstream i("/dev/urandom", std::ios::binary); std::ifstream i("/dev/urandom", std::ios::binary);
i.read(data, length); i.read(reinterpret_cast<char*>(data), length);
#endif // HAVE_LIBSSL #endif // HAVE_LIBSSL
} }