aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-testbed-profiler.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-12-03 17:31:48 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-12-03 17:31:48 +0000
commit3497cf2a8e182972cf217e38f9c762f7df4cec2f (patch)
treee663f19307964d9417d5dcf987176c3c858ef2a3 /src/testbed/gnunet-testbed-profiler.c
parentac1843fcf0e0bda117d02c6ffbf976a11f379a35 (diff)
downloadgnunet-3497cf2a8e182972cf217e38f9c762f7df4cec2f.tar.gz
gnunet-3497cf2a8e182972cf217e38f9c762f7df4cec2f.zip
- remove duplicate functions
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r--src/testbed/gnunet-testbed-profiler.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index 0990905e9..4b8a95849 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -719,9 +719,9 @@ host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *host, int status
719 *hc_handle = NULL; 719 *hc_handle = NULL;
720 if (GNUNET_NO == status) 720 if (GNUNET_NO == status)
721 { 721 {
722 if ((NULL != host) && (NULL != GNUNET_TESTBED_host_get_hostname_ (host))) 722 if ((NULL != host) && (NULL != GNUNET_TESTBED_host_get_hostname (host)))
723 LOG (GNUNET_ERROR_TYPE_ERROR, _("Host %s cannot start testbed\n"), 723 LOG (GNUNET_ERROR_TYPE_ERROR, _("Host %s cannot start testbed\n"),
724 GNUNET_TESTBED_host_get_hostname_ (host)); 724 GNUNET_TESTBED_host_get_hostname (host));
725 else 725 else
726 LOG (GNUNET_ERROR_TYPE_ERROR, _("Testbed cannot be started on localhost\n")); 726 LOG (GNUNET_ERROR_TYPE_ERROR, _("Testbed cannot be started on localhost\n"));
727 GNUNET_SCHEDULER_cancel (abort_task); 727 GNUNET_SCHEDULER_cancel (abort_task);
@@ -737,7 +737,7 @@ host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *host, int status
737 GNUNET_free (hc_handles); 737 GNUNET_free (hc_handles);
738 hc_handles = NULL; 738 hc_handles = NULL;
739 mc_proc = 739 mc_proc =
740 GNUNET_TESTBED_controller_start (GNUNET_TESTBED_host_get_hostname_ 740 GNUNET_TESTBED_controller_start (GNUNET_TESTBED_host_get_hostname
741 (hosts[0]), 741 (hosts[0]),
742 hosts[0], 742 hosts[0],
743 cfg, 743 cfg,
@@ -786,8 +786,7 @@ run (void *cls, char *const *args, const char *cfgfile,
786 &host_habitable_cb, 786 &host_habitable_cb,
787 &hc_handles[nhost]))) 787 &hc_handles[nhost])))
788 { 788 {
789 fprintf (stderr, _("Host %s cannot start testbed\n"), 789 GNUNET_break (0);
790 GNUNET_TESTBED_host_get_hostname_ (hosts[nhost]));
791 for (nhost = 0; nhost < num_hosts; nhost++) 790 for (nhost = 0; nhost < num_hosts; nhost++)
792 if (NULL != hc_handles[nhost]) 791 if (NULL != hc_handles[nhost])
793 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]); 792 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]);