aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/tls_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/tls_client.cpp')
-rw-r--r--src/cmd/tls_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/tls_client.cpp b/src/cmd/tls_client.cpp
index 74607469f..543119fb9 100644
--- a/src/cmd/tls_client.cpp
+++ b/src/cmd/tls_client.cpp
@@ -64,7 +64,7 @@ int connect_to_host(const std::string& host, u16bit port, const std::string& tra
host_addr->h_addr,
host_addr->h_length);
- socket_info.sin_addr = *(struct in_addr*)host_addr->h_addr; // FIXME
+ socket_info.sin_addr = *reinterpret_cast<struct in_addr*>(host_addr->h_addr); // FIXME
if(::connect(fd, (sockaddr*)&socket_info, sizeof(struct sockaddr)) != 0)
{