From 7eb788695c1411f6fbeb05d4fbef302d2a4dd7ee Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Tue, 26 Jun 2012 18:00:49 +0000 Subject: [PATCH] -fix tests --- src/gns/test_gns_cname_lookup.c | 2 +- src/gns/test_gns_dht_delegated_lookup.c | 2 +- src/gns/test_gns_dht_threepeer.c | 2 +- src/gns/test_gns_max_queries.c | 2 +- src/gns/test_gns_ns_lookup.c | 2 +- src/gns/test_gns_pseu_shorten.c | 2 +- src/gns/test_gns_revocation.c | 2 +- src/gns/test_gns_simple_delegated_lookup.c | 2 +- src/gns/test_gns_simple_get_authority.c | 2 +- src/gns/test_gns_simple_lookup.c | 2 +- src/gns/test_gns_simple_mx_lookup.c | 2 +- src/gns/test_gns_simple_shorten.c | 2 +- src/gns/test_gns_simple_srv_lookup.c | 2 +- src/gns/test_gns_simple_zkey_lookup.c | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/gns/test_gns_cname_lookup.c b/src/gns/test_gns_cname_lookup.c index 8a319f821..a9eae329c 100644 --- a/src/gns/test_gns_cname_lookup.c +++ b/src/gns/test_gns_cname_lookup.c @@ -284,7 +284,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c index 144cde695..1d5f343aa 100644 --- a/src/gns/test_gns_dht_delegated_lookup.c +++ b/src/gns/test_gns_dht_delegated_lookup.c @@ -152,7 +152,7 @@ on_lookup_result(void *cls, uint32_t rd_count, static void commence_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_dht_threepeer.c b/src/gns/test_gns_dht_threepeer.c index 09dc00485..0fc0f9104 100644 --- a/src/gns/test_gns_dht_threepeer.c +++ b/src/gns/test_gns_dht_threepeer.c @@ -284,7 +284,7 @@ all_connected(void *cls, const char *emsg) void ns_create_cont(void *cls, int32_t s, const char *emsg) { - GNUNET_NAMESTORE_disconnect((struct GNUNET_NAMESTORE_Handle *)cls, 0); + GNUNET_NAMESTORE_disconnect ((struct GNUNET_NAMESTORE_Handle *)cls); } static void diff --git a/src/gns/test_gns_max_queries.c b/src/gns/test_gns_max_queries.c index 6902a37b0..f26353a95 100644 --- a/src/gns/test_gns_max_queries.c +++ b/src/gns/test_gns_max_queries.c @@ -160,7 +160,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) int i; char lookup_name[MAX_DNS_NAME_LENGTH]; - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_ns_lookup.c b/src/gns/test_gns_ns_lookup.c index a7eaef717..7aea0e721 100644 --- a/src/gns/test_gns_ns_lookup.c +++ b/src/gns/test_gns_ns_lookup.c @@ -292,7 +292,7 @@ static void commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); resolver_working = GNUNET_NO; GNUNET_RESOLVER_connect (cfg); diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c index 560c5bb8a..f181f0cc7 100644 --- a/src/gns/test_gns_pseu_shorten.c +++ b/src/gns/test_gns_pseu_shorten.c @@ -533,7 +533,7 @@ put_pkey_dht(void *cls, int32_t success, const char *emsg) DHT_OPERATION_TIMEOUT, &put_www_dht, NULL); - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_NO); + GNUNET_NAMESTORE_disconnect (namestore_handle); GNUNET_free (nrb); } diff --git a/src/gns/test_gns_revocation.c b/src/gns/test_gns_revocation.c index b80704cb8..66969dc62 100644 --- a/src/gns/test_gns_revocation.c +++ b/src/gns/test_gns_revocation.c @@ -139,7 +139,7 @@ on_lookup_result(void *cls, uint32_t rd_count, static void commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c index 428f11f77..fa3216948 100644 --- a/src/gns/test_gns_simple_delegated_lookup.c +++ b/src/gns/test_gns_simple_delegated_lookup.c @@ -153,7 +153,7 @@ on_lookup_result(void *cls, uint32_t rd_count, static void commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_simple_get_authority.c b/src/gns/test_gns_simple_get_authority.c index 3c4e8103b..c73780c5b 100644 --- a/src/gns/test_gns_simple_get_authority.c +++ b/src/gns/test_gns_simple_get_authority.c @@ -139,7 +139,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnecting from namestore\n"); - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connecting to gns\n"); diff --git a/src/gns/test_gns_simple_lookup.c b/src/gns/test_gns_simple_lookup.c index 2b986ca87..ec1b8f054 100644 --- a/src/gns/test_gns_simple_lookup.c +++ b/src/gns/test_gns_simple_lookup.c @@ -137,7 +137,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c index 357c85797..0d4949a95 100644 --- a/src/gns/test_gns_simple_mx_lookup.c +++ b/src/gns/test_gns_simple_mx_lookup.c @@ -140,7 +140,7 @@ on_lookup_result(void *cls, uint32_t rd_count, static void commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c index 8fb9a79a3..c08c688d1 100644 --- a/src/gns/test_gns_simple_shorten.c +++ b/src/gns/test_gns_simple_shorten.c @@ -139,7 +139,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnecting from namestore\n"); - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connecting to gns\n"); diff --git a/src/gns/test_gns_simple_srv_lookup.c b/src/gns/test_gns_simple_srv_lookup.c index 23554e771..f09f3698d 100644 --- a/src/gns/test_gns_simple_srv_lookup.c +++ b/src/gns/test_gns_simple_srv_lookup.c @@ -143,7 +143,7 @@ on_lookup_result(void *cls, uint32_t rd_count, static void commence_testing (void *cls, int32_t success, const char *emsg) { - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); diff --git a/src/gns/test_gns_simple_zkey_lookup.c b/src/gns/test_gns_simple_zkey_lookup.c index dd2e59954..5ec690a14 100644 --- a/src/gns/test_gns_simple_zkey_lookup.c +++ b/src/gns/test_gns_simple_zkey_lookup.c @@ -145,7 +145,7 @@ commence_testing (void *cls, int32_t success, const char *emsg) char* pos; struct GNUNET_CRYPTO_ShortHashAsciiEncoded hash_str; - GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); + GNUNET_NAMESTORE_disconnect (namestore_handle); gns_handle = GNUNET_GNS_connect(cfg); -- 2.25.1