summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-17 22:04:17 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-17 22:04:17 +0000
commit60f51d6688e98ed87d24e6e9d1f179ca5db8f07a (patch)
tree7c99579afb6e99ea7a76cc5e564db694bdc6d8aa /cpp/src/IcePack/Client.cpp
parentfixes (diff)
downloadice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.bz2
ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.xz
ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.zip
tons of fixes
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r--cpp/src/IcePack/Client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp
index c4853e153d1..79053fcdcee 100644
--- a/cpp/src/IcePack/Client.cpp
+++ b/cpp/src/IcePack/Client.cpp
@@ -122,16 +122,16 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
}
PropertiesPtr properties = communicator->getProperties();
-
- string adminEndpoints = properties->getProperty("Ice.Adapter.Admin.Endpoints");
- if (adminEndpoints.length() == 0)
+ const char* adminEndpointsProperty = "Ice.Adapter.Admin.Endpoints";
+ string adminEndpoints = properties->getProperty(adminEndpointsProperty);
+ if (adminEndpoints.empty())
{
- cerr << argv[0] << ": `Ice.Adapter.Admin.Endpoints' property is not set" << endl;
+ cerr << argv[0] << ": property `" << adminEndpointsProperty << "' is not set" << endl;
return EXIT_FAILURE;
}
- Ice::ObjectPrx adminBase = communicator->stringToProxy("admin:" + adminEndpoints);
- AdminPrx admin = AdminPrx::checkedCast(adminBase);
+ Ice::ObjectPrx base = communicator->stringToProxy("admin:" + adminEndpoints);
+ AdminPrx admin = AdminPrx::checkedCast(base);
if (!admin)
{
cerr << argv[0] << ": `" << adminEndpoints << "' are no valid administrative endpoints" << endl;