diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 16:46:58 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 16:46:58 +0000 |
commit | 2ee48eea42eca9d2dc7dc4d58ab9cf3f2dbb5066 (patch) | |
tree | 8fce122235044be5e6ec93e3372ee5de9a4c7548 /src/testbed/test_testbed_api_3peers_3controllers.c | |
parent | f31790d110d6eed2aa78f336f96cc2240bd44c39 (diff) | |
download | gnunet-2ee48eea42eca9d2dc7dc4d58ab9cf3f2dbb5066.tar.gz gnunet-2ee48eea42eca9d2dc7dc4d58ab9cf3f2dbb5066.zip |
host compatibility check in GNUNET_TESTBED_run() and fixes
Diffstat (limited to 'src/testbed/test_testbed_api_3peers_3controllers.c')
-rw-r--r-- | src/testbed/test_testbed_api_3peers_3controllers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testbed/test_testbed_api_3peers_3controllers.c b/src/testbed/test_testbed_api_3peers_3controllers.c index 0bdcb6147..b7d9ec5cd 100644 --- a/src/testbed/test_testbed_api_3peers_3controllers.c +++ b/src/testbed/test_testbed_api_3peers_3controllers.c | |||
@@ -866,10 +866,12 @@ status_cb (void *cls, const struct GNUNET_CONFIGURATION_Handle *config, int stat | |||
866 | * GNUNET_TESTBED_is_host_habitable() is invalid after this callback is called | 866 | * GNUNET_TESTBED_is_host_habitable() is invalid after this callback is called |
867 | * | 867 | * |
868 | * @param cls NULL | 868 | * @param cls NULL |
869 | * @param host the host whose status is being reported; will be NULL if the host | ||
870 | * given to GNUNET_TESTBED_is_host_habitable() is NULL | ||
869 | * @param status GNUNET_YES if it is habitable; GNUNET_NO if not | 871 | * @param status GNUNET_YES if it is habitable; GNUNET_NO if not |
870 | */ | 872 | */ |
871 | static void | 873 | static void |
872 | host_habitable_cb (void *cls, int status) | 874 | host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *_host, int status) |
873 | { | 875 | { |
874 | hc_handle = NULL; | 876 | hc_handle = NULL; |
875 | cp1 = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb, | 877 | cp1 = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb, |