diff options
author | Vitaly Ivanov <vitaly@wickr.com> | 2019-02-22 01:03:08 +0700 |
---|---|---|
committer | Vitaly Ivanov <vitaly@wickr.com> | 2019-02-22 01:03:08 +0700 |
commit | 56bbc543e290893cffbd783b501091afe7ac1b59 (patch) | |
tree | 9e9bdb48d7df0616fef24ad52858ceaaf529bcf6 /src/cli | |
parent | 004c3664b1431bf648bbdd9840107e4c00553b56 (diff) |
Windows compilation fix
Diffstat (limited to 'src/cli')
-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 8954889cf..ad300e8d4 100644 --- a/src/cli/tls_server.cpp +++ b/src/cli/tls_server.cpp @@ -114,7 +114,7 @@ class TLS_Server final : public Command, public Botan::TLS::Callbacks // macOS handles zero size buffers differently - it will return 0 even if there's no incoming data, // and after that connect() will fail as sockaddr_in from is not initialized int dummy; - if(::recvfrom(server_fd, &dummy, sizeof(dummy), MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0) + if(::recvfrom(server_fd, reinterpret_cast<char*>(&dummy), sizeof(dummy), MSG_PEEK, reinterpret_cast<struct sockaddr*>(&from), &from_len) != 0) { throw CLI_Error("Could not peek next packet"); } |