aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_testbed.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-12-03 13:58:54 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-12-03 13:58:54 +0000
commit91443f0b2069987845c458ab70eee8f0600f5939 (patch)
tree2ad1d5cb676f2146cccc009bf2a9209c56012ef2 /src/testbed/testbed_api_testbed.c
parent020a5d9860368e63c997fb5dd82b2498b85f0584 (diff)
downloadgnunet-91443f0b2069987845c458ab70eee8f0600f5939.tar.gz
gnunet-91443f0b2069987845c458ab70eee8f0600f5939.zip
making GNUNET_TESTBED_is_host_compatible() asynchronous
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r--src/testbed/testbed_api_testbed.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c
index 61dc5e741..05debd98c 100644
--- a/src/testbed/testbed_api_testbed.c
+++ b/src/testbed/testbed_api_testbed.c
@@ -969,23 +969,23 @@ GNUNET_TESTBED_create_va (struct GNUNET_TESTBED_Controller *controller,
969 enum GNUNET_TESTBED_TopologyOption underlay_topology, 969 enum GNUNET_TESTBED_TopologyOption underlay_topology,
970 va_list va) 970 va_list va)
971{ 971{
972 unsigned int nhost; 972 /* unsigned int nhost; */
973 973
974 GNUNET_assert (underlay_topology < GNUNET_TESTBED_TOPOLOGY_NONE); 974 /* GNUNET_assert (underlay_topology < GNUNET_TESTBED_TOPOLOGY_NONE); */
975 if (num_hosts != 0) 975 /* if (num_hosts != 0) */
976 { 976 /* { */
977 for (nhost = 0; nhost < num_hosts; nhost++) 977 /* for (nhost = 0; nhost < num_hosts; nhost++) */
978 { 978 /* { */
979 if (GNUNET_YES != GNUNET_TESTBED_is_host_habitable (hosts[nhost], cfg)) 979 /* if (GNUNET_YES != GNUNET_TESTBED_is_host_habitable (hosts[nhost], cfg)) */
980 { 980 /* { */
981 LOG (GNUNET_ERROR_TYPE_ERROR, _("Host %s cannot start testbed\n"), 981 /* LOG (GNUNET_ERROR_TYPE_ERROR, _("Host %s cannot start testbed\n"), */
982 GNUNET_TESTBED_host_get_hostname_ (hosts[nhost])); 982 /* GNUNET_TESTBED_host_get_hostname_ (hosts[nhost])); */
983 break; 983 /* break; */
984 } 984 /* } */
985 } 985 /* } */
986 if (num_hosts != nhost) 986 /* if (num_hosts != nhost) */
987 return NULL; 987 /* return NULL; */
988 } 988 /* } */
989 /* We need controller callback here to get operation done events while 989 /* We need controller callback here to get operation done events while
990 linking hosts */ 990 linking hosts */
991 GNUNET_break (0); 991 GNUNET_break (0);