diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-04-24 16:43:00 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-04-24 16:43:00 +0000 |
commit | 38799e58ddb78e9ada2c63694bbf54b6746f71bf (patch) | |
tree | 40ea71b972895ad06ff92b5631bc4a73bac788f6 /cpp/src/IcePack/ActivatorI.cpp | |
parent | override Ice.Default.Locator to avoid iceboxadmin error message (diff) | |
download | ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.bz2 ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.tar.xz ice-38799e58ddb78e9ada2c63694bbf54b6746f71bf.zip |
Eliminated numerous warnings from Sun C++ 5.4 builds
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-rw-r--r-- | cpp/src/IcePack/ActivatorI.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp index e6a07121167..2a123f1e7e0 100644 --- a/cpp/src/IcePack/ActivatorI.cpp +++ b/cpp/src/IcePack/ActivatorI.cpp @@ -136,14 +136,16 @@ IcePack::ActivatorI::activate(const ServerPtr& server) // // Normalize the pathname a bit. // - string::size_type pos; - while((pos = path.find("//")) != string::npos) { - path.erase(pos, 1); - } - while((pos = path.find("/./")) != string::npos) - { - path.erase(pos, 2); + string::size_type pos; + while((pos = path.find("//")) != string::npos) + { + path.erase(pos, 1); + } + while((pos = path.find("/./")) != string::npos) + { + path.erase(pos, 2); + } } // @@ -607,18 +609,18 @@ IcePack::ActivatorI::terminationListener() } char s[16]; - int ret; + int rs; string message; // // Read the message over the pipe. // - while((ret = read(fd, &s, 16)) > 0) + while((rs = read(fd, &s, 16)) > 0) { - message.append(s, ret); + message.append(s, rs); } - if(ret == -1) + if(rs == -1) { if(errno != EAGAIN || message.empty()) { @@ -629,7 +631,7 @@ IcePack::ActivatorI::terminationListener() ++p; } - else if(ret == 0) + else if(rs == 0) { // // If the pipe was closed, the process has terminated. |