summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Server.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-23 09:23:16 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-23 09:23:16 -0230
commitc582bd94f73c03d3599c96de9b4962d301040574 (patch)
treedb0ef6ec3745eaefc7d7d5f05904b131a9dc94eb /cpp/demo/Ice/minimal/Server.cpp
parentBug 3137 - createObjectAdpter methods write properties (diff)
downloadice-c582bd94f73c03d3599c96de9b4962d301040574.tar.bz2
ice-c582bd94f73c03d3599c96de9b4962d301040574.tar.xz
ice-c582bd94f73c03d3599c96de9b4962d301040574.zip
Bug 3969 - minimal demo should still parse command line arguments
Diffstat (limited to 'cpp/demo/Ice/minimal/Server.cpp')
-rw-r--r--cpp/demo/Ice/minimal/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Ice/minimal/Server.cpp b/cpp/demo/Ice/minimal/Server.cpp
index cf9fde4d9ba..f74fe08dee0 100644
--- a/cpp/demo/Ice/minimal/Server.cpp
+++ b/cpp/demo/Ice/minimal/Server.cpp
@@ -13,13 +13,13 @@
using namespace std;
int
-main()
+main(int argc, char* argv[])
{
Ice::CommunicatorPtr communicator;
try
{
- communicator = Ice::initialize();
+ communicator = Ice::initialize(argc, argv);
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Hello", "tcp -p 10000");
adapter->add(new HelloI, communicator->stringToIdentity("hello"));
adapter->activate();