aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-13 16:44:11 +0000
committerlloyd <[email protected]>2014-02-13 16:44:11 +0000
commitc123180d2cdce837706eeffedc4e6105be0b2a5e (patch)
treef247a114936b6fea499045682b01fd5677fdea32 /src/cmd/tls_server.cpp
parent9168b5747037b7cde74e3bb60ffce6bf27be910b (diff)
Fix warnings
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 980a68d09..9db250859 100644
--- a/src/cmd/tls_server.cpp
+++ b/src/cmd/tls_server.cpp
@@ -115,7 +115,7 @@ void stream_socket_write(int sockfd, const byte buf[], size_t length)
}
}
-void alert_received(TLS::Alert alert, const byte buf[], size_t buf_size)
+void alert_received(TLS::Alert alert, const byte[], size_t)
{
std::cout << "Alert: " << alert.type_string() << "\n";
}
@@ -192,7 +192,7 @@ int tls_server_main(int argc, char* argv[])
{
for(size_t i = 0; i != input_len; ++i)
{
- char c = (char)input[i];
+ const char c = static_cast<char>(input[i]);
s += c;
if(c == '\n')
{