From 914e59bab342c08b9ba14b8187b6c954068b559d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 25 Feb 2011 17:36:01 +0000 Subject: NO-JIRA: only two args used git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1074644 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpid/cpp/examples/messaging/server.cpp b/qpid/cpp/examples/messaging/server.cpp index ab72694c61..aa271d91f9 100644 --- a/qpid/cpp/examples/messaging/server.cpp +++ b/qpid/cpp/examples/messaging/server.cpp @@ -39,8 +39,8 @@ using std::string; int main(int argc, char** argv) { const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672"; - std::string connectionOptions = argc > 3 ? argv[3] : ""; - + std::string connectionOptions = argc > 2 ? argv[2] : ""; + Connection connection(url, connectionOptions); try { connection.open(); -- cgit v1.2.1