forked from premiere/premiere-libtorrent
fix warnings
This commit is contained in:
parent
56c05f9671
commit
dbfcab5c28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue