diff options
author | Jack Lloyd <[email protected]> | 2016-11-09 14:21:49 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-09 14:21:49 -0500 |
commit | e6bf87b6b0d4d9c3877b79de53de58dc34a3acca (patch) | |
tree | dfd672f072ec5fa97ea51c188dfa877818e1cd5a /src/lib | |
parent | 72a898b26e0657391348a121d501328cb6b6cfdd (diff) |
Remove remaining old style casts.
Still not a hard error even in maintainer mode because sometimes
system headers pull in C style casts via macros (eg MAP_FAILED).
But, it not being a hard error makes it easy to backslide.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utils/http_util/http_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/http_util/http_util.cpp b/src/lib/utils/http_util/http_util.cpp index 85bd1828b..970b90238 100644 --- a/src/lib/utils/http_util/http_util.cpp +++ b/src/lib/utils/http_util/http_util.cpp @@ -91,7 +91,7 @@ std::string http_transact(const std::string& hostname, socket_info.sin_addr = *reinterpret_cast<struct in_addr*>(host_addr->h_addr); // FIXME - if(::connect(fd, (sockaddr*)&socket_info, sizeof(struct sockaddr)) != 0) + if(::connect(fd, reinterpret_cast<sockaddr*>(&socket_info), sizeof(struct sockaddr)) != 0) throw HTTP_Error("HTTP connection to " + hostname + " failed"); size_t sent_so_far = 0; |