diff options
author | Michi Henning <michi@zeroc.com> | 2004-12-31 04:32:43 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-12-31 04:32:43 +0000 |
commit | 2e3f67c17223bf7af57100a3fc787b3cf6c72952 (patch) | |
tree | f8a96f33656f1f556ad3dde191134af69b23aeef /cpp/include/IcePatch2/Util.h | |
parent | Fixed incorrect return value from start() for bad options. (diff) | |
download | ice-2e3f67c17223bf7af57100a3fc787b3cf6c72952.tar.bz2 ice-2e3f67c17223bf7af57100a3fc787b3cf6c72952.tar.xz ice-2e3f67c17223bf7af57100a3fc787b3cf6c72952.zip |
Compress == 1 wasn't working as intended and ended up always compressing a
file. Fixed it so the compressed file is used only if the compressed
file is actually smaller than the uncompressed file.
Diffstat (limited to 'cpp/include/IcePatch2/Util.h')
-rw-r--r-- | cpp/include/IcePatch2/Util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/IcePatch2/Util.h b/cpp/include/IcePatch2/Util.h index 4041838cf69..94c95257e8b 100644 --- a/cpp/include/IcePatch2/Util.h +++ b/cpp/include/IcePatch2/Util.h @@ -38,7 +38,7 @@ ICE_PATCH2_API Ice::StringSeq readDirectory(const std::string&); ICE_PATCH2_API void createDirectory(const std::string&); ICE_PATCH2_API void createDirectoryRecursive(const std::string&); -ICE_PATCH2_API void compressBytesToFile(const std::string&, const Ice::ByteSeq&, Ice::Int); +ICE_PATCH2_API int compressBytesToFile(const std::string&, const Ice::ByteSeq&, Ice::Int, int); ICE_PATCH2_API void decompressFile(const std::string&); struct FileInfoEqual: public std::binary_function<const FileInfo&, const FileInfo&, bool> |