aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-26 18:00:49 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-26 18:00:49 +0000
commit7eb788695c1411f6fbeb05d4fbef302d2a4dd7ee (patch)
treefcee5f01b8f0d83431ae99034c4231ba1867cb1b
parent142c6d9fcf13d947b9fa51b2434e6d0f9cdc5cf2 (diff)
downloadgnunet-7eb788695c1411f6fbeb05d4fbef302d2a4dd7ee.tar.gz
gnunet-7eb788695c1411f6fbeb05d4fbef302d2a4dd7ee.zip
-fix tests
-rw-r--r--src/gns/test_gns_cname_lookup.c2
-rw-r--r--src/gns/test_gns_dht_delegated_lookup.c2
-rw-r--r--src/gns/test_gns_dht_threepeer.c2
-rw-r--r--src/gns/test_gns_max_queries.c2
-rw-r--r--src/gns/test_gns_ns_lookup.c2
-rw-r--r--src/gns/test_gns_pseu_shorten.c2
-rw-r--r--src/gns/test_gns_revocation.c2
-rw-r--r--src/gns/test_gns_simple_delegated_lookup.c2
-rw-r--r--src/gns/test_gns_simple_get_authority.c2
-rw-r--r--src/gns/test_gns_simple_lookup.c2
-rw-r--r--src/gns/test_gns_simple_mx_lookup.c2
-rw-r--r--src/gns/test_gns_simple_shorten.c2
-rw-r--r--src/gns/test_gns_simple_srv_lookup.c2
-rw-r--r--src/gns/test_gns_simple_zkey_lookup.c2
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)
284{ 284{
285 285
286 286
287 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 287 GNUNET_NAMESTORE_disconnect (namestore_handle);
288 288
289 gns_handle = GNUNET_GNS_connect(cfg); 289 gns_handle = GNUNET_GNS_connect(cfg);
290 290
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,
152static void 152static void
153commence_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 153commence_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
154{ 154{
155 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 155 GNUNET_NAMESTORE_disconnect (namestore_handle);
156 156
157 gns_handle = GNUNET_GNS_connect(cfg); 157 gns_handle = GNUNET_GNS_connect(cfg);
158 158
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)
284void 284void
285ns_create_cont(void *cls, int32_t s, const char *emsg) 285ns_create_cont(void *cls, int32_t s, const char *emsg)
286{ 286{
287 GNUNET_NAMESTORE_disconnect((struct GNUNET_NAMESTORE_Handle *)cls, 0); 287 GNUNET_NAMESTORE_disconnect ((struct GNUNET_NAMESTORE_Handle *)cls);
288} 288}
289 289
290static void 290static 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)
160 int i; 160 int i;
161 char lookup_name[MAX_DNS_NAME_LENGTH]; 161 char lookup_name[MAX_DNS_NAME_LENGTH];
162 162
163 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 163 GNUNET_NAMESTORE_disconnect (namestore_handle);
164 164
165 gns_handle = GNUNET_GNS_connect(cfg); 165 gns_handle = GNUNET_GNS_connect(cfg);
166 166
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
292commence_testing (void *cls, int32_t success, const char *emsg) 292commence_testing (void *cls, int32_t success, const char *emsg)
293{ 293{
294 294
295 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 295 GNUNET_NAMESTORE_disconnect (namestore_handle);
296 resolver_working = GNUNET_NO; 296 resolver_working = GNUNET_NO;
297 297
298 GNUNET_RESOLVER_connect (cfg); 298 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)
533 DHT_OPERATION_TIMEOUT, 533 DHT_OPERATION_TIMEOUT,
534 &put_www_dht, 534 &put_www_dht,
535 NULL); 535 NULL);
536 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_NO); 536 GNUNET_NAMESTORE_disconnect (namestore_handle);
537 GNUNET_free (nrb); 537 GNUNET_free (nrb);
538} 538}
539 539
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,
139static void 139static void
140commence_testing (void *cls, int32_t success, const char *emsg) 140commence_testing (void *cls, int32_t success, const char *emsg)
141{ 141{
142 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 142 GNUNET_NAMESTORE_disconnect (namestore_handle);
143 143
144 gns_handle = GNUNET_GNS_connect(cfg); 144 gns_handle = GNUNET_GNS_connect(cfg);
145 145
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,
153static void 153static void
154commence_testing (void *cls, int32_t success, const char *emsg) 154commence_testing (void *cls, int32_t success, const char *emsg)
155{ 155{
156 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 156 GNUNET_NAMESTORE_disconnect (namestore_handle);
157 157
158 gns_handle = GNUNET_GNS_connect(cfg); 158 gns_handle = GNUNET_GNS_connect(cfg);
159 159
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)
139 139
140 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 140 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
141 "disconnecting from namestore\n"); 141 "disconnecting from namestore\n");
142 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 142 GNUNET_NAMESTORE_disconnect (namestore_handle);
143 143
144 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 144 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
145 "connecting to gns\n"); 145 "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)
137{ 137{
138 138
139 139
140 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 140 GNUNET_NAMESTORE_disconnect (namestore_handle);
141 141
142 gns_handle = GNUNET_GNS_connect(cfg); 142 gns_handle = GNUNET_GNS_connect(cfg);
143 143
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,
140static void 140static void
141commence_testing (void *cls, int32_t success, const char *emsg) 141commence_testing (void *cls, int32_t success, const char *emsg)
142{ 142{
143 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 143 GNUNET_NAMESTORE_disconnect (namestore_handle);
144 144
145 gns_handle = GNUNET_GNS_connect(cfg); 145 gns_handle = GNUNET_GNS_connect(cfg);
146 146
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)
139 139
140 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 140 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
141 "disconnecting from namestore\n"); 141 "disconnecting from namestore\n");
142 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 142 GNUNET_NAMESTORE_disconnect (namestore_handle);
143 143
144 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 144 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
145 "connecting to gns\n"); 145 "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,
143static void 143static void
144commence_testing (void *cls, int32_t success, const char *emsg) 144commence_testing (void *cls, int32_t success, const char *emsg)
145{ 145{
146 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 146 GNUNET_NAMESTORE_disconnect (namestore_handle);
147 147
148 gns_handle = GNUNET_GNS_connect(cfg); 148 gns_handle = GNUNET_GNS_connect(cfg);
149 149
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)
145 char* pos; 145 char* pos;
146 struct GNUNET_CRYPTO_ShortHashAsciiEncoded hash_str; 146 struct GNUNET_CRYPTO_ShortHashAsciiEncoded hash_str;
147 147
148 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES); 148 GNUNET_NAMESTORE_disconnect (namestore_handle);
149 149
150 gns_handle = GNUNET_GNS_connect(cfg); 150 gns_handle = GNUNET_GNS_connect(cfg);
151 151