clean up some dead code and fix windows build

This commit is contained in:
Arvid Norberg
2011-02-28 00:35:58 +00:00
parent c15880be91
commit 08c93978a6
6 changed files with 14 additions and 41 deletions

View File

@@ -4890,7 +4890,7 @@ namespace aux {
if (m_external_addresses.size() > 20)
{
if (random() < RAND_MAX / 2)
if (random() < UINT_MAX / 2)
{
#if defined TORRENT_VERBOSE_LOGGING
(*m_logger) << time_now_string() << ": More than 20 slots, dopped\n";