Hi, this patch fixes two "unchecked return value"-warnings in svpclient
// Kenneth
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index e7e32d7..af56dc3 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -248,10 +248,15 @@ rtl::OString MyWin::processCommand( const rtl::OString& rCommand ) } else { - write( nSocket, rCommand.getStr(), rCommand.getLength() ); - write( nSocket, "\n", 1 ); - char buf[256]; ssize_t nBytes = 0; + nBytes = write( nSocket, rCommand.getStr(), rCommand.getLength() ); + if( nBytes < rCommand.getLength() ) + perror( "SvpElementContainer: write() failed" ); + nBytes = write( nSocket, "\n", 1 ); + if( nBytes < 1 ) + perror( "SvpElementContainer: write() failed" ); + + char buf[256]; do { nBytes = read( nSocket, buf, sizeof(buf) );
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice