From cff3c1572ef3e10148e2b7dfde7325d977892474 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 14 Apr 2010 12:23:21 +0000 Subject: Fix testagent for changes in r933842 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933923 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/testagent.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/testagent.cpp b/cpp/src/tests/testagent.cpp index 61b47d83da..98520b424a 100644 --- a/cpp/src/tests/testagent.cpp +++ b/cpp/src/tests/testagent.cpp @@ -165,10 +165,6 @@ int main_int(int argc, char** argv) singleton = new ManagementAgent::Singleton(); const char* host = argc>1 ? argv[1] : "127.0.0.1"; int port = argc>2 ? atoi(argv[2]) : 5672; - qpid::client::ConnectionSettings settings; - - settings.host = host; - settings.port = port; signal(SIGINT, shutdown); @@ -180,7 +176,7 @@ int main_int(int argc, char** argv) // Start the agent. It will attempt to make a connection to the // management broker - agent->init(settings, 5, false, ".magentdata"); + agent->init(host, port, 5, false, ".magentdata"); // Allocate some core objects CoreClass core1(agent, "Example Core Object #1"); -- cgit v1.2.1