fix warnings
This commit is contained in:
@@ -68,7 +68,7 @@ bool local_bind = false;
|
|||||||
|
|
||||||
// number of seeds we've spawned. The test is terminated
|
// number of seeds we've spawned. The test is terminated
|
||||||
// when this reaches zero, for dual tests
|
// 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
|
// the kind of test to run. Upload sends data to a
|
||||||
// bittorrent client, download requests data from
|
// 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;
|
size_type file_size = total_size / 9;
|
||||||
while (s > 0)
|
while (s > 0)
|
||||||
{
|
{
|
||||||
char buf[100];
|
char b[100];
|
||||||
snprintf(buf, sizeof(buf), "t/stress_test%d", i);
|
snprintf(b, sizeof(b), "t/stress_test%d", i);
|
||||||
++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;
|
s -= file_size;
|
||||||
file_size += 200;
|
file_size += 200;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user