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) );
Context
- [Libreoffice] [PATCH]: fixes compiler warnings for vcl/workben/svpclient.cxx · Kenneth Venken
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.