fixed build errors on Solaris

This commit is contained in:
Arvid Norberg
2009-01-27 08:24:48 +00:00
parent 37c48117b0
commit 3cdf9c87a8
26 changed files with 88 additions and 61 deletions

View File

@@ -134,7 +134,7 @@ namespace libtorrent
if (found_end)
{
m_buffer.push_back(0);
char* status = strchr(&m_buffer[0], ' ');
char* status = std::strchr(&m_buffer[0], ' ');
if (status == 0)
{
(*h)(asio::error::operation_not_supported);
@@ -144,7 +144,7 @@ namespace libtorrent
}
status++;
int code = atoi(status);
int code = std::atoi(status);
if (code != 200)
{
(*h)(asio::error::operation_not_supported);