summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Server.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/Server.cpp
parentfixes (diff)
downloadice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.bz2
ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.tar.xz
ice-60f51d6688e98ed87d24e6e9d1f179ca5db8f07a.zip
tons of fixes
Diffstat (limited to 'cpp/src/IcePack/Server.cpp')
-rw-r--r--cpp/src/IcePack/Server.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/cpp/src/IcePack/Server.cpp b/cpp/src/IcePack/Server.cpp
index d9e35785e68..0af2b57fec3 100644
--- a/cpp/src/IcePack/Server.cpp
+++ b/cpp/src/IcePack/Server.cpp
@@ -58,16 +58,19 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
PropertiesPtr properties = communicator->getProperties();
- string adminEndpoints = properties->getProperty("Ice.Adapter.Admin.Endpoints");
- if (adminEndpoints.length() != 0 && !nowarn)
+ const char* adminEndpointsProperty = "Ice.Adapter.Admin.Endpoints";
+ string adminEndpoints = properties->getProperty(adminEndpointsProperty);
+ if (!adminEndpoints.empty() && !nowarn)
{
- cerr << argv[0] << ": warning: administrative endpoints `Ice.Adapter.Admin.Endpoints' enabled" << endl;
+ cerr << argv[0] << ": warning: administrative endpoints property `" << adminEndpointsProperty << "' enabled"
+ << endl;
}
- string forwardEndpoints = properties->getProperty("Ice.Adapter.Forward.Endpoints");
- if (forwardEndpoints.length() == 0)
+ const char* forwardEndpointsProperty = "Ice.Adapter.Forward.Endpoints";
+ string forwardEndpoints = properties->getProperty(forwardEndpointsProperty);
+ if (forwardEndpoints.empty())
{
- cerr << argv[0] << ": `Ice.Adapter.Forward.Endpoints' property is not set" << endl;
+ cerr << argv[0] << ": property `" << forwardEndpointsProperty << "' is not set" << endl;
return EXIT_FAILURE;
}