aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-24 16:26:46 +0000
committerlloyd <[email protected]>2014-01-24 16:26:46 +0000
commita8b93af1b0cad5cea5495aad1301f567b4345589 (patch)
tree579d011dbc75d0afea158f43c068aa9cb7efec9e /src/cmd/tls_server.cpp
parentf5bd8adc44701a37204a6748089c2ee11a5a781d (diff)
Warning fixes, and hook default algo list into speed command
Diffstat (limited to 'src/cmd/tls_server.cpp')
-rw-r--r--src/cmd/tls_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/tls_server.cpp b/src/cmd/tls_server.cpp
index 819b9f380..dac69e2c1 100644
--- a/src/cmd/tls_server.cpp
+++ b/src/cmd/tls_server.cpp
@@ -159,13 +159,13 @@ int tls_server_main(int argc, char* argv[])
int fd;
if(transport == "tcp")
- fd = ::accept(server_fd, NULL, NULL);
+ fd = ::accept(server_fd, nullptr, nullptr);
else
{
struct sockaddr_in from;
socklen_t from_len = sizeof(sockaddr_in);
- if(::recvfrom(server_fd, NULL, 0, MSG_PEEK,
+ if(::recvfrom(server_fd, nullptr, 0, MSG_PEEK,
(struct sockaddr*)&from, &from_len) != 0)
throw std::runtime_error("Could not peek next packet");