From d57d81e529a44d8042401e36057a69ebe97e870a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 28 Mar 2015 19:05:46 +0100 Subject: Clean up C-style casts from pointers to void Change-Id: I5e370445affbcd32b05588111f74590bf24f39d6 --- sal/osl/unx/pipe.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sal/osl/unx/pipe.cxx') diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx index 9815a8236f41..98bb9a1d459d 100644 --- a/sal/osl/unx/pipe.cxx +++ b/sal/osl/unx/pipe.cxx @@ -77,7 +77,7 @@ oslPipe __osl_createPipeImpl(void) { oslPipe pPipeImpl; - pPipeImpl = (oslPipe)calloc(1, sizeof(struct oslPipeImpl)); + pPipeImpl = static_cast(calloc(1, sizeof(struct oslPipeImpl))); if (pPipeImpl == NULL) return NULL; pPipeImpl->m_nRefCount =1; @@ -490,7 +490,7 @@ sal_Int32 SAL_CALL osl_receivePipe(oslPipe pPipe, } nRet = recv(pPipe->m_Socket, - (sal_Char*)pBuffer, + pBuffer, BytesToRead, 0); if ( nRet < 0 ) @@ -517,7 +517,7 @@ sal_Int32 SAL_CALL osl_sendPipe(oslPipe pPipe, } nRet = send(pPipe->m_Socket, - (sal_Char*)pBuffer, + pBuffer, BytesToSend, 0); if ( nRet <= 0 ) @@ -555,7 +555,7 @@ sal_Int32 SAL_CALL osl_writePipe( oslPipe pPipe, const void *pBuffer , sal_Int32 BytesToSend -= RetVal; BytesSend += RetVal; - pBuffer= (sal_Char*)pBuffer + RetVal; + pBuffer= static_cast(pBuffer) + RetVal; } return BytesSend; @@ -581,7 +581,7 @@ sal_Int32 SAL_CALL osl_readPipe( oslPipe pPipe, void *pBuffer , sal_Int32 n ) BytesToRead -= RetVal; BytesRead += RetVal; - pBuffer= (sal_Char*)pBuffer + RetVal; + pBuffer= static_cast(pBuffer) + RetVal; } return BytesRead; } -- cgit