From 494d4d36237f37c455f6689fca280ed75498403a Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 5 Apr 2012 10:26:23 +0200 Subject: Verious warnings generated by SunStudio fixed Signed-off-by: Martin Sustrik --- src/ip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ip.cpp') diff --git a/src/ip.cpp b/src/ip.cpp index bae8d7e..66177a7 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -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); -- cgit v1.2.3