diff options
Diffstat (limited to 'libs/asio/test/generic/datagram_protocol.cpp')
-rw-r--r-- | libs/asio/test/generic/datagram_protocol.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/asio/test/generic/datagram_protocol.cpp b/libs/asio/test/generic/datagram_protocol.cpp index f61736c92..62daeb8bf 100644 --- a/libs/asio/test/generic/datagram_protocol.cpp +++ b/libs/asio/test/generic/datagram_protocol.cpp @@ -2,7 +2,7 @@ // generic/datagram_protocol.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -73,7 +73,8 @@ void test() dp::socket socket2(ios, dp(af_inet, ipproto_udp)); dp::socket socket3(ios, dp::endpoint()); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket1 = ::socket(af_inet, sock_dgram, 0); + dp::socket::native_handle_type native_socket1 + = ::socket(af_inet, sock_dgram, 0); dp::socket socket4(ios, dp(af_inet, ipproto_udp), native_socket1); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) @@ -105,9 +106,11 @@ void test() socket1.open(dp(af_inet, ipproto_udp), ec); #if !defined(BOOST_ASIO_WINDOWS_RUNTIME) - int native_socket2 = ::socket(af_inet, sock_dgram, 0); + dp::socket::native_handle_type native_socket2 + = ::socket(af_inet, sock_dgram, 0); socket1.assign(dp(af_inet, ipproto_udp), native_socket2); - int native_socket3 = ::socket(af_inet, sock_dgram, 0); + dp::socket::native_handle_type native_socket3 + = ::socket(af_inet, sock_dgram, 0); socket1.assign(dp(af_inet, ipproto_udp), native_socket3, ec); #endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME) |