summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-12-31 03:15:41 +0000
committerMichi Henning <michi@zeroc.com>2004-12-31 03:15:41 +0000
commit32d43cdd22ae1386d1d0d4e536e0f2afeb42c4c6 (patch)
treea68a5ec5247f6085745fe6bcc14bb70a5fd69c5d /cpp/src/IcePatch/Server.cpp
parentfix (diff)
downloadice-32d43cdd22ae1386d1d0d4e536e0f2afeb42c4c6.tar.bz2
ice-32d43cdd22ae1386d1d0d4e536e0f2afeb42c4c6.tar.xz
ice-32d43cdd22ae1386d1d0d4e536e0f2afeb42c4c6.zip
Fixed incorrect return value from start() for bad options.
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r--cpp/src/IcePatch/Server.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp
index 45d76e2e809..15b33fdb530 100644
--- a/cpp/src/IcePatch/Server.cpp
+++ b/cpp/src/IcePatch/Server.cpp
@@ -129,24 +129,24 @@ IcePatch::IcePatchService::start(int argc, char* argv[])
{
cerr << e.reason << endl;
usage(argv[0]);
- return EXIT_FAILURE;
+ return false;
}
if(opts.isSet("h") || opts.isSet("help"))
{
usage(argv[0]);
- return EXIT_SUCCESS;
+ return false;
}
if(opts.isSet("v") || opts.isSet("version"))
{
cout << ICE_STRING_VERSION << endl;
- return EXIT_SUCCESS;
+ return false;
}
if(!args.empty())
{
usage(argv[0]);
- return EXIT_FAILURE;
+ return false;
}
PropertiesPtr properties = communicator()->getProperties();