towards handling suboperations during overlay connect
[oweals/gnunet.git] / src / testbed / testbed_api_hosts.c
index 20e60126508377cb5b056ee9fc8aabba7849f9f0..989e7d1d814d6c8b6619e05234999680ff63bbf0 100644 (file)
@@ -293,8 +293,17 @@ GNUNET_TESTBED_host_create (const char *hostname, const char *username,
  */
 unsigned int
 GNUNET_TESTBED_hosts_load_from_file (const char *filename,
-                                     struct GNUNET_TESTBED_Host **hosts)
+                                     struct GNUNET_TESTBED_Host ***hosts)
 {
+#if 0
+  struct GNUNET_TESTBED_Host **host_array;
+
+  host_array = GNUNET_malloc (num_hosts * sizeof (struct GNUNET_TESTBED_Host *));
+  host_array[foo] = GNUNET_TESTBED_host_create (FIXME);
+  *hosts = host_array;
+
+  return num_hosts;
+#endif  
   // see testing_group.c, GNUNET_TESTING_hosts_load
   GNUNET_break (0);
   return 0;
@@ -339,7 +348,7 @@ GNUNET_TESTBED_host_destroy (struct GNUNET_TESTBED_Host *host)
   }
   host_list =
       GNUNET_realloc (host_list,
-                      sizeof (struct GNUNET_TESTBED_Host) * host_list_size);
+                      sizeof (struct GNUNET_TESTBED_Host *) * host_list_size);
 }