diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-09-30 15:05:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-04 06:51:29 +0000 |
commit | 974b7fe6dfa8935a2068365e416b8d886f9d2a32 (patch) | |
tree | 2e7c05cc5f67f691098bb871f26374271e3e6370 /sal/osl/w32/pipe.c | |
parent | 480f6916eff8636fbf6b980a604c6e19a099df08 (diff) |
clang-cl loplugin: sal
Change-Id: If04d3f07dc8bffac8887773b5424c09848cd8f1a
Reviewed-on: https://gerrit.libreoffice.org/29404
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl/w32/pipe.c')
-rw-r--r-- | sal/osl/w32/pipe.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sal/osl/w32/pipe.c b/sal/osl/w32/pipe.c index bbcdf098e4b4..7693a25b6196 100644 --- a/sal/osl/w32/pipe.c +++ b/sal/osl/w32/pipe.c @@ -64,7 +64,7 @@ struct oslPipeImpl { /* osl_create/destroy-PipeImpl */ /*****************************************************************************/ -oslPipe __osl_createPipeImpl(void) +oslPipe osl_createPipeImpl(void) { oslPipe pPipe; @@ -83,7 +83,7 @@ oslPipe __osl_createPipeImpl(void) return pPipe; } -void __osl_destroyPipeImpl(oslPipe pPipe) +void osl_destroyPipeImpl(oslPipe pPipe) { if (pPipe != NULL) { @@ -160,7 +160,7 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options rtl_uString_newConcat(&name, temp, strPipeName); /* alloc memory */ - pPipe= __osl_createPipeImpl(); + pPipe= osl_createPipeImpl(); osl_atomic_increment(&(pPipe->m_Reference)); /* build system pipe name */ @@ -245,7 +245,7 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options } /* if we reach here something went wrong */ - __osl_destroyPipeImpl(pPipe); + osl_destroyPipeImpl(pPipe); return NULL; } @@ -259,7 +259,7 @@ void SAL_CALL osl_releasePipe( oslPipe pPipe ) { // OSL_ASSERT( pPipe ); - if( 0 == pPipe ) + if( NULL == pPipe ) return; if( 0 == osl_atomic_decrement( &(pPipe->m_Reference) ) ) @@ -267,7 +267,7 @@ void SAL_CALL osl_releasePipe( oslPipe pPipe ) if( ! pPipe->m_bClosed ) osl_closePipe( pPipe ); - __osl_destroyPipeImpl( pPipe ); + osl_destroyPipeImpl( pPipe ); } } @@ -331,16 +331,16 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe) break; // Everything's fine !!! default: // Something went wrong - return 0; + return NULL; } } break; default: // All other error say that somethings going wrong. - return 0; + return NULL; } } - pAcceptedPipe = __osl_createPipeImpl(); + pAcceptedPipe = osl_createPipeImpl(); OSL_ASSERT(pAcceptedPipe); osl_atomic_increment(&(pAcceptedPipe->m_Reference)); |