diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-06-28 22:52:03 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-06-28 22:52:03 +0000 |
commit | 0e327a88a4640b291ee096fb31396ed4d203f636 (patch) | |
tree | 3155260ffa37d101a4dff4a9152b5a113564c643 /cpp/src/IcePatch2/Util.cpp | |
parent | fix noarch RPM dependencies (diff) | |
download | ice-0e327a88a4640b291ee096fb31396ed4d203f636.tar.bz2 ice-0e327a88a4640b291ee096fb31396ed4d203f636.tar.xz ice-0e327a88a4640b291ee096fb31396ed4d203f636.zip |
Port to Solaris 10 + fix for numerous warnings on Sun
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index b16203054fa..d8522353f21 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -125,7 +125,7 @@ IcePatch2::readFileInfo(FILE* fp, FileInfo& info) { string data; char buf[BUFSIZ]; - while(fgets(buf, sizeof(buf), fp) != 0) + while(fgets(buf, static_cast<int>(sizeof(buf)), fp) != 0) { data += buf; @@ -971,7 +971,7 @@ getFileInfoSeqInt(const string& basePath, const string& relPath, int compress, G } } - unsigned int bytesLeft = buf.st_size; + unsigned int bytesLeft = static_cast<unsigned int>(buf.st_size); while(bytesLeft > 0) { ByteSeq bytes(min(bytesLeft, 1024u*1024)); |