aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-04 05:50:31 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-04 05:50:31 +0000
commit460223a5a382c80881b4fb01b17e592d98af0a39 (patch)
treebdac0b9f37ca05ad3c127be58cccab1a97b0a7ce /src/testbed/testbed_api.c
parentcd72d5c554e8178b6da1897caa5ff930b51c8a2c (diff)
downloadgnunet-460223a5a382c80881b4fb01b17e592d98af0a39.tar.gz
gnunet-460223a5a382c80881b4fb01b17e592d98af0a39.zip
- remove unused configuration parameter in GNUNET_TESTBED_controller_link()
Diffstat (limited to 'src/testbed/testbed_api.c')
-rw-r--r--src/testbed/testbed_api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c
index 2df164a02..207f2658f 100644
--- a/src/testbed/testbed_api.c
+++ b/src/testbed/testbed_api.c
@@ -1652,7 +1652,6 @@ GNUNET_TESTBED_compress_cfg_ (const struct GNUNET_CONFIGURATION_Handle *cfg,
1652 * @param delegated_host requests to which host should be delegated; cannot be NULL 1652 * @param delegated_host requests to which host should be delegated; cannot be NULL
1653 * @param slave_host which host is used to run the slave controller; use NULL to 1653 * @param slave_host which host is used to run the slave controller; use NULL to
1654 * make the master controller connect to the delegated host 1654 * make the master controller connect to the delegated host
1655 * @param slave_cfg configuration to use for the slave controller
1656 * @param is_subordinate GNUNET_YES if the controller at delegated_host should 1655 * @param is_subordinate GNUNET_YES if the controller at delegated_host should
1657 * be started by the slave controller; GNUNET_NO if the slave 1656 * be started by the slave controller; GNUNET_NO if the slave
1658 * controller has to connect to the already started delegated 1657 * controller has to connect to the already started delegated
@@ -1664,8 +1663,7 @@ GNUNET_TESTBED_controller_link (void *op_cls,
1664 struct GNUNET_TESTBED_Controller *master, 1663 struct GNUNET_TESTBED_Controller *master,
1665 struct GNUNET_TESTBED_Host *delegated_host, 1664 struct GNUNET_TESTBED_Host *delegated_host,
1666 struct GNUNET_TESTBED_Host *slave_host, 1665 struct GNUNET_TESTBED_Host *slave_host,
1667 const struct GNUNET_CONFIGURATION_Handle 1666 int is_subordinate)
1668 *slave_cfg, int is_subordinate)
1669{ 1667{
1670 struct OperationContext *opc; 1668 struct OperationContext *opc;
1671 struct GNUNET_TESTBED_ControllerLinkRequest *msg; 1669 struct GNUNET_TESTBED_ControllerLinkRequest *msg;
@@ -1689,7 +1687,8 @@ GNUNET_TESTBED_controller_link (void *op_cls,
1689 msg->header.size = htons (msg_size); 1687 msg->header.size = htons (msg_size);
1690 msg->delegated_host_id = htonl (delegated_host_id); 1688 msg->delegated_host_id = htonl (delegated_host_id);
1691 msg->slave_host_id = htonl (slave_host_id); 1689 msg->slave_host_id = htonl (slave_host_id);
1692 msg->is_subordinate = (GNUNET_YES == is_subordinate) ? 1 : 0;data = GNUNET_malloc (sizeof (struct ControllerLinkData)); 1690 msg->is_subordinate = (GNUNET_YES == is_subordinate) ? 1 : 0;
1691 data = GNUNET_malloc (sizeof (struct ControllerLinkData));
1693 data->msg = msg; 1692 data->msg = msg;
1694 data->host_id = delegated_host_id; 1693 data->host_id = delegated_host_id;
1695 opc = GNUNET_malloc (sizeof (struct OperationContext)); 1694 opc = GNUNET_malloc (sizeof (struct OperationContext));