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/Ice/Network.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/Ice/Network.cpp')
-rw-r--r-- | cpp/src/Ice/Network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp index f341f3b79de..bc917c4299c 100644 --- a/cpp/src/Ice/Network.cpp +++ b/cpp/src/Ice/Network.cpp @@ -1315,7 +1315,7 @@ IceInternal::getLocalHosts() // while(true) { - int bufsize = numaddrs * sizeof(struct ifreq); + int bufsize = numaddrs * static_cast<int>(sizeof(struct ifreq)); ifc.ifc_len = bufsize; ifc.ifc_buf = (char*)malloc(bufsize); @@ -1344,7 +1344,7 @@ IceInternal::getLocalHosts() free(ifc.ifc_buf); } - numaddrs = ifc.ifc_len / sizeof(struct ifreq); + numaddrs = ifc.ifc_len / static_cast<int>(sizeof(struct ifreq)); struct ifreq* ifr = ifc.ifc_req; for(int i = 0; i < numaddrs; ++i) { |