aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-04-30 10:18:42 -0400
committerJack Lloyd <[email protected]>2019-04-30 10:18:42 -0400
commit0d4d5c4e7f2d94e4c5035694707ebab982bd0c72 (patch)
treefb6cc945071378c0f2e7bd83a8a25f19b9ca13f4 /src/cli
parent31fc732ce65c5f430ac3ee34c3dd6db062a47752 (diff)
Add a cast for Windows
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/tls_server.cpp2
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");
}