Clean up passing Boolean value to osl::Socket::setOption
Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
This commit is contained in:
parent
f9290d3011
commit
2302e27d80
@ -386,7 +386,7 @@ namespace io_acceptor {
|
|||||||
if( m_bTcpNoDelay || remoteHostname == "localhost" ||
|
if( m_bTcpNoDelay || remoteHostname == "localhost" ||
|
||||||
remoteHostname.startsWith("127.0.0.") )
|
remoteHostname.startsWith("127.0.0.") )
|
||||||
{
|
{
|
||||||
sal_Int32 nTcpNoDelay = sal_True;
|
sal_Int32 nTcpNoDelay = sal_Int32(true);
|
||||||
pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay,
|
pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay,
|
||||||
sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp );
|
sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp );
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ namespace stoc_connector
|
|||||||
// it can make a significant speed difference on linux boxes.
|
// it can make a significant speed difference on linux boxes.
|
||||||
if( bTcpNoDelay || aHost == "localhost" || aHost.startsWith("127.0.0.") )
|
if( bTcpNoDelay || aHost == "localhost" || aHost.startsWith("127.0.0.") )
|
||||||
{
|
{
|
||||||
sal_Int32 nTcpNoDelay = sal_True;
|
sal_Int32 nTcpNoDelay = sal_Int32(true);
|
||||||
pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay,
|
pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay,
|
||||||
sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp );
|
sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user