diff options
author | Jack Lloyd <[email protected]> | 2019-04-30 10:18:42 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-04-30 10:18:42 -0400 |
commit | 0d4d5c4e7f2d94e4c5035694707ebab982bd0c72 (patch) | |
tree | fb6cc945071378c0f2e7bd83a8a25f19b9ca13f4 /src | |
parent | 31fc732ce65c5f430ac3ee34c3dd6db062a47752 (diff) |
Add a cast for Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/tls_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/tls_server.cpp b/src/cli/tls_server.cpp index 1527f30df..c6832582b 100644 --- a/src/cli/tls_server.cpp +++ b/src/cli/tls_server.cpp @@ -135,7 +135,7 @@ class TLS_Server final : public Command, public Botan::TLS::Callbacks peek_len = sizeof(dummy); #endif - if(::recvfrom(server_fd, peek_buf, peek_len, MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0) + if(::recvfrom(server_fd, static_cast<char*>(peek_buf), peek_len, MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0) { throw CLI_Error("Could not peek next packet"); } |