diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-05 10:26:23 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-06 12:54:19 +0200 |
commit | 494d4d36237f37c455f6689fca280ed75498403a (patch) | |
tree | a4441786b9dc656910ed32bafdb5da93b73145e5 /src/ip.cpp | |
parent | 6b20f4f6f46975eb5c0219e3b8a841a64643ce4b (diff) |
Verious warnings generated by SunStudio fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ip.cpp')
-rw-r--r-- | src/ip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ void xs::tune_tcp_socket (fd_t s_, bool keepalive_) if (keepalive_) { int keepalive = 1; - int rc = setsockopt (s_, SOL_SOCKET, SO_KEEPALIVE, (char*) &keepalive, + rc = setsockopt (s_, SOL_SOCKET, SO_KEEPALIVE, (char*) &keepalive, sizeof (int)); #ifdef XS_HAVE_WINDOWS wsa_assert (rc != SOCKET_ERROR); |