diff options
author | lloyd <[email protected]> | 2015-01-23 20:10:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-23 20:10:57 +0000 |
commit | 94befc816b7cd7067f1d68e8a8e9943c63fa1b88 (patch) | |
tree | 0309564079cde6d1aa91e76920ca768da50559ac /src/cmd/tls_client.cpp | |
parent | 848314e16daed06e6e519dbf8c40edf9c85a51bf (diff) |
Fix Clang compile
Diffstat (limited to 'src/cmd/tls_client.cpp')
-rw-r--r-- | src/cmd/tls_client.cpp | 2 |
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) { |