summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-02-25 17:36:01 +0000
committerGordon Sim <gsim@apache.org>2011-02-25 17:36:01 +0000
commit57208a0fe53211efd075cf77baae79a36e7e71f0 (patch)
treef5a5ff61f42959522315752bd9697298a43ffd1c /cpp
parent53e3ea6ad5a26ed61bcfa810befc7a3a0dc1e3a0 (diff)
downloadqpid-python-57208a0fe53211efd075cf77baae79a36e7e71f0.tar.gz
NO-JIRA: only two args used
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1074644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/messaging/server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/examples/messaging/server.cpp b/cpp/examples/messaging/server.cpp
index ab72694c61..aa271d91f9 100644
--- a/cpp/examples/messaging/server.cpp
+++ b/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();