summaryrefslogtreecommitdiff
path: root/io/source/acceptor
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 09:43:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 09:49:03 +0200
commit2302e27d80d8900d23452ae50a41276f43dfbc6c (patch)
tree2c6a5080a1ba4b0787ababb6693d6368eb232fbc /io/source/acceptor
parentf9290d301144744df879cea907584656b7f74ad1 (diff)
Clean up passing Boolean value to osl::Socket::setOption
Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
Diffstat (limited to 'io/source/acceptor')
-rw-r--r--io/source/acceptor/acc_socket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index bf6569189cef..a7eacebf1426 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -386,7 +386,7 @@ namespace io_acceptor {
if( m_bTcpNoDelay || remoteHostname == "localhost" ||
remoteHostname.startsWith("127.0.0.") )
{
- sal_Int32 nTcpNoDelay = sal_True;
+ sal_Int32 nTcpNoDelay = sal_Int32(true);
pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay,
sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp );
}