summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-06-28 22:52:03 +0000
committerBernard Normier <bernard@zeroc.com>2006-06-28 22:52:03 +0000
commit0e327a88a4640b291ee096fb31396ed4d203f636 (patch)
tree3155260ffa37d101a4dff4a9152b5a113564c643 /cpp/src/IcePatch2/Util.cpp
parentfix noarch RPM dependencies (diff)
downloadice-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.cpp4
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));