qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1074644 - /qpid/trunk/qpid/cpp/examples/messaging/server.cpp
Date Fri, 25 Feb 2011 17:36:02 GMT
Author: gsim
Date: Fri Feb 25 17:36:01 2011
New Revision: 1074644

URL: http://svn.apache.org/viewvc?rev=1074644&view=rev
Log:
NO-JIRA: only two args used

Modified:
    qpid/trunk/qpid/cpp/examples/messaging/server.cpp

Modified: qpid/trunk/qpid/cpp/examples/messaging/server.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/server.cpp?rev=1074644&r1=1074643&r2=1074644&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/server.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/server.cpp Fri Feb 25 17:36:01 2011
@@ -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();



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message