summaryrefslogtreecommitdiff
path: root/ACE/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2015-11-11 10:41:17 -0600
committerAdam Mitz <mitza@ociweb.com>2015-11-11 10:41:17 -0600
commit1277b80ea4b527fde5c53821a319b6b2d6b664ca (patch)
tree4a35e76e048510491e576bcf916cb3a0f547973b /ACE/ace/INET_Addr.cpp
parentf08cd1be887d98f00a4d3da4ef29a0d29e0604e1 (diff)
downloadATCD-1277b80ea4b527fde5c53821a319b6b2d6b664ca.tar.gz
VC14 is more pedantic about using reinterpret_cast inapropriately.
Diffstat (limited to 'ACE/ace/INET_Addr.cpp')
-rw-r--r--ACE/ace/INET_Addr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ACE/ace/INET_Addr.cpp b/ACE/ace/INET_Addr.cpp
index 63bd73ca271..7adff1df674 100644
--- a/ACE/ace/INET_Addr.cpp
+++ b/ACE/ace/INET_Addr.cpp
@@ -1004,7 +1004,8 @@ ACE_INET_Addr::get_host_addr (char *dst, int size) const
//}
# if defined (ACE_WIN32)
- sockaddr *sa = reinterpret_cast<sockaddr *> (&this->inet_addr_.in6_);
+ sockaddr *sa = reinterpret_cast<sockaddr *>
+ (const_cast<sockaddr_in6 *> (&this->inet_addr_.in6_));
if (ACE_OS::getnameinfo (sa, this->get_size (), dst, size,
0, 0, // Don't want service name
NI_NUMERICHOST) == 0)