Update of /cvsroot/boost/boost/boost/asio/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4698
Modified Files:
socket_ops.hpp
Log Message:
Fix compiler warnings with MSVC8.
Index: socket_ops.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/socket_ops.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- socket_ops.hpp 5 Jul 2006 05:26:35 -0000 1.2
+++ socket_ops.hpp 26 Jul 2006 11:19:21 -0000 1.3
@@ -455,7 +455,7 @@
memcpy(&ipv6_address->sin6_addr, src, sizeof(in6_addr_type));
}
- DWORD string_length = length;
+ DWORD string_length = static_cast<DWORD>(length);
int result = error_wrapper(::WSAAddressToStringA(
reinterpret_cast<sockaddr*>(&address),
address_length, 0, dest, &string_length));
@@ -1378,8 +1378,9 @@
hostent hent;
char hbuf[8192] = "";
int herr = 0;
- hostent* hptr = socket_ops::gethostbyaddr(addr, addr_len,
- sa->sa_family, &hent, hbuf, sizeof(hbuf), &herr);
+ hostent* hptr = socket_ops::gethostbyaddr(addr,
+ static_cast<int>(addr_len), sa->sa_family,
+ &hent, hbuf, sizeof(hbuf), &herr);
if (hptr && hptr->h_name && hptr->h_name[0] != '\0')
{
if (flags & NI_NOFQDN)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs