summaryrefslogtreecommitdiff
path: root/libs/asio/test/ip/icmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/asio/test/ip/icmp.cpp')
-rw-r--r--libs/asio/test/ip/icmp.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/asio/test/ip/icmp.cpp b/libs/asio/test/ip/icmp.cpp
index e2cc35035..cebe8e3b1 100644
--- a/libs/asio/test/ip/icmp.cpp
+++ b/libs/asio/test/ip/icmp.cpp
@@ -2,7 +2,7 @@
// icmp.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)
@@ -75,7 +75,8 @@ void test()
ip::icmp::socket socket4(ios, ip::icmp::endpoint(ip::icmp::v4(), 0));
ip::icmp::socket socket5(ios, ip::icmp::endpoint(ip::icmp::v6(), 0));
#if !defined(BOOST_ASIO_WINDOWS_RUNTIME)
- int native_socket1 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
+ ip::icmp::socket::native_handle_type native_socket1
+ = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
ip::icmp::socket socket6(ios, ip::icmp::v4(), native_socket1);
#endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME)
@@ -111,9 +112,11 @@ void test()
socket1.open(ip::icmp::v6(), ec);
#if !defined(BOOST_ASIO_WINDOWS_RUNTIME)
- int native_socket2 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
+ ip::icmp::socket::native_handle_type native_socket2
+ = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
socket1.assign(ip::icmp::v4(), native_socket2);
- int native_socket3 = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
+ ip::icmp::socket::native_handle_type native_socket3
+ = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
socket1.assign(ip::icmp::v4(), native_socket3, ec);
#endif // !defined(BOOST_ASIO_WINDOWS_RUNTIME)