aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-23 20:10:57 +0000
committerlloyd <[email protected]>2015-01-23 20:10:57 +0000
commit94befc816b7cd7067f1d68e8a8e9943c63fa1b88 (patch)
tree0309564079cde6d1aa91e76920ca768da50559ac /src/cmd
parent848314e16daed06e6e519dbf8c40edf9c85a51bf (diff)
Fix Clang compile
Diffstat (limited to 'src/cmd')
-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)
{