summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-07 17:12:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-07 17:13:20 +0100
commit8cb69cc82c11b640c0328f4788c05bed1ac15e90 (patch)
tree7dbc8d50010ede0587b127729df2341499997aba /tools
parent48ebe0987da9c95d8582fd6b9607b84a4bed0f75 (diff)
-1 -> Z_ERRNO for clarity
Change-Id: I29aa8531646f416a72b89f7571b757c39705c31a
Diffstat (limited to 'tools')
-rw-r--r--tools/source/zcodec/zcodec.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index d6b916994f73..e0d6a88716b0 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -153,7 +153,7 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm )
UpdateCRC( mpInBuf, nInToRead );
}
- err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
+ err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
if ( err < 0 )
{
mbStatus = false;
@@ -220,7 +220,7 @@ long ZCodec::Read( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize )
UpdateCRC( mpInBuf, nInToRead );
}
- err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
+ err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
if ( err < 0 )
{
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.
@@ -273,7 +273,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize
UpdateCRC( mpInBuf, nInToRead );
}
- err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : -1;
+ err = mbStatus ? inflate(PZSTREAM, Z_NO_FLUSH) : Z_ERRNO;
if ( err < 0 )
{
// Accept Z_BUF_ERROR as EAGAIN or EWOULDBLOCK.