From 4fde3de683965e967ec8b151c54341b66bac52ce Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 18 Sep 2009 07:00:40 +0000 Subject: [PATCH] remove dependency on lexical_cast in bandwidth limiter test (since it kept failing on snow leopard) --- test/test_bandwidth_limiter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_bandwidth_limiter.cpp b/test/test_bandwidth_limiter.cpp index e670c68fe..8f0d0785b 100644 --- a/test/test_bandwidth_limiter.cpp +++ b/test/test_bandwidth_limiter.cpp @@ -40,7 +40,6 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/stat.hpp" #include "libtorrent/time.hpp" -#include #include #include #include @@ -168,8 +167,9 @@ void spawn_connections(connections_t& v, bandwidth_manager& bwm { for (int i = 0; i < num; ++i) { - v.push_back(new peer_connection(bwm, bwc, 200, false - , prefix + boost::lexical_cast(i))); + char name[200]; + snprintf(name, sizeof(name), "%s%d", prefix, i); + v.push_back(new peer_connection(bwm, bwc, 200, false, name)); } }