fix warnings

This commit is contained in:
Arvid Norberg 2012-05-03 06:04:59 +00:00
parent 56c05f9671
commit dbfcab5c28
1 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ bool local_bind = false;
// number of seeds we've spawned. The test is terminated
// when this reaches zero, for dual tests
boost::detail::atomic_count num_seeds(0);
static boost::detail::atomic_count num_seeds(0);
// the kind of test to run. Upload sends data to a
// bittorrent client, download requests data from
@ -593,10 +593,10 @@ void generate_torrent(std::vector<char>& buf, int size)
size_type file_size = total_size / 9;
while (s > 0)
{
char buf[100];
snprintf(buf, sizeof(buf), "t/stress_test%d", i);
char b[100];
snprintf(b, sizeof(b), "t/stress_test%d", i);
++i;
fs.add_file(buf, (std::min)(s, size_type(file_size)));
fs.add_file(b, (std::min)(s, size_type(file_size)));
s -= file_size;
file_size += 200;
}