diff options
Diffstat (limited to 'src/namestore')
21 files changed, 95 insertions, 119 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c index b00510ae7..82d73f6de 100644 --- a/src/namestore/gnunet-namestore-fcfsd.c +++ b/src/namestore/gnunet-namestore-fcfsd.c | |||
@@ -226,11 +226,9 @@ static unsigned long long port; | |||
226 | * Task run whenever HTTP server operations are pending. | 226 | * Task run whenever HTTP server operations are pending. |
227 | * | 227 | * |
228 | * @param cls unused | 228 | * @param cls unused |
229 | * @param tc scheduler context | ||
230 | */ | 229 | */ |
231 | static void | 230 | static void |
232 | do_httpd (void *cls, | 231 | do_httpd (void *cls); |
233 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
234 | 232 | ||
235 | 233 | ||
236 | /** | 234 | /** |
@@ -840,11 +838,9 @@ run_httpd () | |||
840 | * Task run whenever HTTP server operations are pending. | 838 | * Task run whenever HTTP server operations are pending. |
841 | * | 839 | * |
842 | * @param cls unused | 840 | * @param cls unused |
843 | * @param tc scheduler context | ||
844 | */ | 841 | */ |
845 | static void | 842 | static void |
846 | do_httpd (void *cls, | 843 | do_httpd (void *cls) |
847 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
848 | { | 844 | { |
849 | httpd_task = NULL; | 845 | httpd_task = NULL; |
850 | MHD_run (httpd); | 846 | MHD_run (httpd); |
@@ -856,11 +852,9 @@ do_httpd (void *cls, | |||
856 | * Task run on shutdown. Cleans up everything. | 852 | * Task run on shutdown. Cleans up everything. |
857 | * | 853 | * |
858 | * @param cls unused | 854 | * @param cls unused |
859 | * @param tc scheduler context | ||
860 | */ | 855 | */ |
861 | static void | 856 | static void |
862 | do_shutdown (void *cls, | 857 | do_shutdown (void *cls) |
863 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
864 | { | 858 | { |
865 | if (NULL != httpd_task) | 859 | if (NULL != httpd_task) |
866 | { | 860 | { |
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 378832a65..0965d8cbe 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -199,11 +199,9 @@ static int monitor; | |||
199 | * Task run on shutdown. Cleans up everything. | 199 | * Task run on shutdown. Cleans up everything. |
200 | * | 200 | * |
201 | * @param cls unused | 201 | * @param cls unused |
202 | * @param tc scheduler context | ||
203 | */ | 202 | */ |
204 | static void | 203 | static void |
205 | do_shutdown (void *cls, | 204 | do_shutdown (void *cls) |
206 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
207 | { | 205 | { |
208 | if (NULL != get_default) | 206 | if (NULL != get_default) |
209 | { | 207 | { |
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 4d60c8ea5..0bfd002f5 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -270,10 +270,9 @@ static struct GNUNET_SERVER_NotificationContext *monitor_nc; | |||
270 | * Task run during shutdown. | 270 | * Task run during shutdown. |
271 | * | 271 | * |
272 | * @param cls unused | 272 | * @param cls unused |
273 | * @param tc unused | ||
274 | */ | 273 | */ |
275 | static void | 274 | static void |
276 | cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 275 | cleanup_task (void *cls) |
277 | { | 276 | { |
278 | struct ZoneIteration *no; | 277 | struct ZoneIteration *no; |
279 | struct NamestoreClient *nc; | 278 | struct NamestoreClient *nc; |
@@ -1525,11 +1524,9 @@ monitor_sync (struct ZoneMonitor *zm) | |||
1525 | * Obtain the next datum during the zone monitor's zone intiial iteration. | 1524 | * Obtain the next datum during the zone monitor's zone intiial iteration. |
1526 | * | 1525 | * |
1527 | * @param cls zone monitor that does its initial iteration | 1526 | * @param cls zone monitor that does its initial iteration |
1528 | * @param tc scheduler context | ||
1529 | */ | 1527 | */ |
1530 | static void | 1528 | static void |
1531 | monitor_next (void *cls, | 1529 | monitor_next (void *cls); |
1532 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
1533 | 1530 | ||
1534 | 1531 | ||
1535 | /** | 1532 | /** |
@@ -1606,11 +1603,9 @@ handle_monitor_start (void *cls, | |||
1606 | * Obtain the next datum during the zone monitor's zone intiial iteration. | 1603 | * Obtain the next datum during the zone monitor's zone intiial iteration. |
1607 | * | 1604 | * |
1608 | * @param cls zone monitor that does its initial iteration | 1605 | * @param cls zone monitor that does its initial iteration |
1609 | * @param tc scheduler context | ||
1610 | */ | 1606 | */ |
1611 | static void | 1607 | static void |
1612 | monitor_next (void *cls, | 1608 | monitor_next (void *cls) |
1613 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1614 | { | 1609 | { |
1615 | struct ZoneMonitor *zm = cls; | 1610 | struct ZoneMonitor *zm = cls; |
1616 | int ret; | 1611 | int ret; |
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 70695b85a..f65c45e85 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -866,11 +866,9 @@ reconnect (struct GNUNET_NAMESTORE_Handle *h) | |||
866 | * Re-establish the connection to the service. | 866 | * Re-establish the connection to the service. |
867 | * | 867 | * |
868 | * @param cls handle to use to re-connect. | 868 | * @param cls handle to use to re-connect. |
869 | * @param tc scheduler context | ||
870 | */ | 869 | */ |
871 | static void | 870 | static void |
872 | reconnect_task (void *cls, | 871 | reconnect_task (void *cls) |
873 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
874 | { | 872 | { |
875 | struct GNUNET_NAMESTORE_Handle *h = cls; | 873 | struct GNUNET_NAMESTORE_Handle *h = cls; |
876 | 874 | ||
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index a3938cfd8..cfebd63a7 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -82,12 +82,12 @@ struct RecordEntry | |||
82 | * DLL | 82 | * DLL |
83 | */ | 83 | */ |
84 | struct RecordEntry *next; | 84 | struct RecordEntry *next; |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * DLL | 87 | * DLL |
88 | */ | 88 | */ |
89 | struct RecordEntry *prev; | 89 | struct RecordEntry *prev; |
90 | 90 | ||
91 | }; | 91 | }; |
92 | 92 | ||
93 | struct RequestHandle | 93 | struct RequestHandle |
@@ -106,12 +106,12 @@ struct RequestHandle | |||
106 | * JSON response object | 106 | * JSON response object |
107 | */ | 107 | */ |
108 | struct JsonApiObject *resp_object; | 108 | struct JsonApiObject *resp_object; |
109 | 109 | ||
110 | /** | 110 | /** |
111 | * Rest connection | 111 | * Rest connection |
112 | */ | 112 | */ |
113 | struct RestConnectionDataHandle *conndata_handle; | 113 | struct RestConnectionDataHandle *conndata_handle; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Handle to GNS service. | 116 | * Handle to GNS service. |
117 | */ | 117 | */ |
@@ -121,12 +121,12 @@ struct RequestHandle | |||
121 | * Handle to NAMESTORE | 121 | * Handle to NAMESTORE |
122 | */ | 122 | */ |
123 | struct GNUNET_NAMESTORE_Handle *ns_handle; | 123 | struct GNUNET_NAMESTORE_Handle *ns_handle; |
124 | 124 | ||
125 | /** | 125 | /** |
126 | * Handle to NAMESTORE it | 126 | * Handle to NAMESTORE it |
127 | */ | 127 | */ |
128 | struct GNUNET_NAMESTORE_ZoneIterator *list_it; | 128 | struct GNUNET_NAMESTORE_ZoneIterator *list_it; |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * Private key for the zone | 131 | * Private key for the zone |
132 | */ | 132 | */ |
@@ -205,7 +205,7 @@ struct RequestHandle | |||
205 | /** | 205 | /** |
206 | * ID of a task associated with the resolution process. | 206 | * ID of a task associated with the resolution process. |
207 | */ | 207 | */ |
208 | struct GNUNET_SCHEDULER_Task * timeout_task; | 208 | struct GNUNET_SCHEDULER_Task * timeout_task; |
209 | 209 | ||
210 | /** | 210 | /** |
211 | * The plugin result processor | 211 | * The plugin result processor |
@@ -353,25 +353,25 @@ gnsrecord_to_json (const struct GNUNET_GNSRECORD_Data *rd) | |||
353 | * Task run on shutdown. Cleans up everything. | 353 | * Task run on shutdown. Cleans up everything. |
354 | * | 354 | * |
355 | * @param cls unused | 355 | * @param cls unused |
356 | * @param tc scheduler context | ||
357 | */ | 356 | */ |
358 | static void | 357 | static void |
359 | do_error (void *cls, | 358 | do_error (void *cls) |
360 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
361 | { | 359 | { |
362 | struct RequestHandle *handle = cls; | 360 | struct RequestHandle *handle = cls; |
363 | struct MHD_Response *resp = GNUNET_REST_create_json_response (NULL); | 361 | struct MHD_Response *resp = GNUNET_REST_create_json_response (NULL); |
362 | |||
364 | handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); | 363 | handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); |
365 | cleanup_handle (handle); | 364 | cleanup_handle (handle); |
366 | } | 365 | } |
367 | 366 | ||
367 | |||
368 | static void | 368 | static void |
369 | cleanup_handle_delayed (void *cls, | 369 | cleanup_handle_delayed (void *cls) |
370 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
371 | { | 370 | { |
372 | cleanup_handle (cls); | 371 | cleanup_handle (cls); |
373 | } | 372 | } |
374 | 373 | ||
374 | |||
375 | /** | 375 | /** |
376 | * Create a response with requested records | 376 | * Create a response with requested records |
377 | * | 377 | * |
@@ -688,7 +688,7 @@ json_to_gnsrecord (const json_t *records_json, | |||
688 | { | 688 | { |
689 | (*rd)[i].expiration_time = etime_abs.abs_value_us; | 689 | (*rd)[i].expiration_time = etime_abs.abs_value_us; |
690 | } | 690 | } |
691 | else | 691 | else |
692 | { | 692 | { |
693 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Value `%s' invalid for record type `%s'\n"), | 693 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Value `%s' invalid for record type `%s'\n"), |
694 | value, typestring); | 694 | value, typestring); |
@@ -760,7 +760,7 @@ namestore_create_cont (struct RestConnectionDataHandle *con, | |||
760 | { | 760 | { |
761 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 761 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
762 | "Name property is no string\n"); | 762 | "Name property is no string\n"); |
763 | GNUNET_REST_jsonapi_object_delete (json_obj); | 763 | GNUNET_REST_jsonapi_object_delete (json_obj); |
764 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 764 | GNUNET_SCHEDULER_add_now (&do_error, handle); |
765 | return; | 765 | return; |
766 | } | 766 | } |
@@ -844,7 +844,7 @@ namestore_zkey_cont (struct RestConnectionDataHandle *con, | |||
844 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_ZKEY, | 844 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_ZKEY, |
845 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_ZKEY), | 845 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_ZKEY), |
846 | &key); | 846 | &key); |
847 | if ( GNUNET_NO == | 847 | if ( GNUNET_NO == |
848 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, | 848 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, |
849 | &key) ) | 849 | &key) ) |
850 | { | 850 | { |
@@ -1058,7 +1058,7 @@ testservice_id_task (void *cls, int result) | |||
1058 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_EGO, | 1058 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_EGO, |
1059 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_EGO), | 1059 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_EGO), |
1060 | &key); | 1060 | &key); |
1061 | if ( GNUNET_YES == | 1061 | if ( GNUNET_YES == |
1062 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, | 1062 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, |
1063 | &key) ) | 1063 | &key) ) |
1064 | { | 1064 | { |
@@ -1070,7 +1070,7 @@ testservice_id_task (void *cls, int result) | |||
1070 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_RECORD_TYPE, | 1070 | GNUNET_CRYPTO_hash (GNUNET_REST_JSONAPI_NAMESTORE_RECORD_TYPE, |
1071 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_RECORD_TYPE), | 1071 | strlen (GNUNET_REST_JSONAPI_NAMESTORE_RECORD_TYPE), |
1072 | &key); | 1072 | &key); |
1073 | if ( GNUNET_YES == | 1073 | if ( GNUNET_YES == |
1074 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, | 1074 | GNUNET_CONTAINER_multihashmap_contains (handle->conndata_handle->url_param_map, |
1075 | &key) ) | 1075 | &key) ) |
1076 | { | 1076 | { |
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index 804b6fc42..d6d3945b7 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -79,7 +79,7 @@ cleanup () | |||
79 | * @param tc scheduler context | 79 | * @param tc scheduler context |
80 | */ | 80 | */ |
81 | static void | 81 | static void |
82 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 82 | endbadly (void *cls) |
83 | { | 83 | { |
84 | if (NULL != nsqe) | 84 | if (NULL != nsqe) |
85 | { | 85 | { |
@@ -92,17 +92,19 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
92 | 92 | ||
93 | 93 | ||
94 | static void | 94 | static void |
95 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 95 | end (void *cls) |
96 | { | 96 | { |
97 | cleanup (); | 97 | cleanup (); |
98 | res = 0; | 98 | res = 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | void lookup_it (void *cls, | 101 | |
102 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 102 | static void |
103 | const char *label, | 103 | lookup_it (void *cls, |
104 | unsigned int rd_count, | 104 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
105 | const struct GNUNET_GNSRECORD_Data *rd) | 105 | const char *label, |
106 | unsigned int rd_count, | ||
107 | const struct GNUNET_GNSRECORD_Data *rd) | ||
106 | { | 108 | { |
107 | nsqe = NULL; | 109 | nsqe = NULL; |
108 | int c; | 110 | int c; |
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c index 6d99f738a..92b2cad6f 100644 --- a/src/namestore/test_namestore_api_lookup_private.c +++ b/src/namestore/test_namestore_api_lookup_private.c | |||
@@ -74,7 +74,7 @@ cleanup () | |||
74 | * @param tc scheduler context | 74 | * @param tc scheduler context |
75 | */ | 75 | */ |
76 | static void | 76 | static void |
77 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 77 | endbadly (void *cls) |
78 | { | 78 | { |
79 | if (NULL != nsqe) | 79 | if (NULL != nsqe) |
80 | { | 80 | { |
@@ -87,17 +87,19 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
87 | 87 | ||
88 | 88 | ||
89 | static void | 89 | static void |
90 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 90 | end (void *cls) |
91 | { | 91 | { |
92 | cleanup (); | 92 | cleanup (); |
93 | res = 0; | 93 | res = 0; |
94 | } | 94 | } |
95 | 95 | ||
96 | void lookup_it (void *cls, | 96 | |
97 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 97 | static void |
98 | const char *label, | 98 | lookup_it (void *cls, |
99 | unsigned int rd_count, | 99 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
100 | const struct GNUNET_GNSRECORD_Data *rd) | 100 | const char *label, |
101 | unsigned int rd_count, | ||
102 | const struct GNUNET_GNSRECORD_Data *rd) | ||
101 | { | 103 | { |
102 | nsqe = NULL; | 104 | nsqe = NULL; |
103 | 105 | ||
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c index ef63b94f1..09d6b302d 100644 --- a/src/namestore/test_namestore_api_lookup_public.c +++ b/src/namestore/test_namestore_api_lookup_public.c | |||
@@ -79,10 +79,9 @@ cleanup () | |||
79 | * Re-establish the connection to the service. | 79 | * Re-establish the connection to the service. |
80 | * | 80 | * |
81 | * @param cls handle to use to re-connect. | 81 | * @param cls handle to use to re-connect. |
82 | * @param tc scheduler context | ||
83 | */ | 82 | */ |
84 | static void | 83 | static void |
85 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 84 | endbadly (void *cls) |
86 | { | 85 | { |
87 | if (NULL != nsqe) | 86 | if (NULL != nsqe) |
88 | { | 87 | { |
@@ -100,7 +99,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
100 | 99 | ||
101 | 100 | ||
102 | static void | 101 | static void |
103 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 102 | end (void *cls) |
104 | { | 103 | { |
105 | cleanup (); | 104 | cleanup (); |
106 | res = 0; | 105 | res = 0; |
diff --git a/src/namestore/test_namestore_api_lookup_shadow.c b/src/namestore/test_namestore_api_lookup_shadow.c index b7f89c0ff..7f9a90704 100644 --- a/src/namestore/test_namestore_api_lookup_shadow.c +++ b/src/namestore/test_namestore_api_lookup_shadow.c | |||
@@ -81,10 +81,9 @@ cleanup () | |||
81 | * Re-establish the connection to the service. | 81 | * Re-establish the connection to the service. |
82 | * | 82 | * |
83 | * @param cls handle to use to re-connect. | 83 | * @param cls handle to use to re-connect. |
84 | * @param tc scheduler context | ||
85 | */ | 84 | */ |
86 | static void | 85 | static void |
87 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 86 | endbadly (void *cls) |
88 | { | 87 | { |
89 | if (NULL != nsqe) | 88 | if (NULL != nsqe) |
90 | { | 89 | { |
@@ -102,7 +101,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
102 | 101 | ||
103 | 102 | ||
104 | static void | 103 | static void |
105 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 104 | end (void *cls) |
106 | { | 105 | { |
107 | cleanup (); | 106 | cleanup (); |
108 | res = 0; | 107 | res = 0; |
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index fd3d573f6..a22baa17b 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -94,10 +94,9 @@ cleanup () | |||
94 | * Re-establish the connection to the service. | 94 | * Re-establish the connection to the service. |
95 | * | 95 | * |
96 | * @param cls handle to use to re-connect. | 96 | * @param cls handle to use to re-connect. |
97 | * @param tc scheduler context | ||
98 | */ | 97 | */ |
99 | static void | 98 | static void |
100 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 99 | endbadly (void *cls) |
101 | { | 100 | { |
102 | if (NULL != delayed_lookup_task) | 101 | if (NULL != delayed_lookup_task) |
103 | { | 102 | { |
@@ -120,7 +119,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
120 | 119 | ||
121 | 120 | ||
122 | static void | 121 | static void |
123 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 122 | end (void *cls) |
124 | { | 123 | { |
125 | cleanup (); | 124 | cleanup (); |
126 | res = 0; | 125 | res = 0; |
@@ -244,8 +243,9 @@ name_lookup_active_proc (void *cls, | |||
244 | &pubkey, TEST_NAME, &rd_decrypt_cb, expected_rd)); | 243 | &pubkey, TEST_NAME, &rd_decrypt_cb, expected_rd)); |
245 | } | 244 | } |
246 | 245 | ||
246 | |||
247 | static void | 247 | static void |
248 | name_lookup_shadow (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 248 | name_lookup_shadow (void *cls) |
249 | { | 249 | { |
250 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 250 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
251 | "Performing lookup for shadow record \n"); | 251 | "Performing lookup for shadow record \n"); |
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 85d1659b4..2ea271d50 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -126,10 +126,9 @@ do_shutdown () | |||
126 | * Re-establish the connection to the service. | 126 | * Re-establish the connection to the service. |
127 | * | 127 | * |
128 | * @param cls handle to use to re-connect. | 128 | * @param cls handle to use to re-connect. |
129 | * @param tc scheduler context | ||
130 | */ | 129 | */ |
131 | static void | 130 | static void |
132 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 131 | endbadly (void *cls) |
133 | { | 132 | { |
134 | do_shutdown (); | 133 | do_shutdown (); |
135 | res = 1; | 134 | res = 1; |
@@ -137,7 +136,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
137 | 136 | ||
138 | 137 | ||
139 | static void | 138 | static void |
140 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 139 | end (void *cls) |
141 | { | 140 | { |
142 | do_shutdown (); | 141 | do_shutdown (); |
143 | res = 0; | 142 | res = 0; |
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index cdf7fd80e..eae10e2ae 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -127,10 +127,9 @@ do_shutdown () | |||
127 | * Re-establish the connection to the service. | 127 | * Re-establish the connection to the service. |
128 | * | 128 | * |
129 | * @param cls handle to use to re-connect. | 129 | * @param cls handle to use to re-connect. |
130 | * @param tc scheduler context | ||
131 | */ | 130 | */ |
132 | static void | 131 | static void |
133 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 132 | endbadly (void *cls) |
134 | { | 133 | { |
135 | do_shutdown (); | 134 | do_shutdown (); |
136 | res = 1; | 135 | res = 1; |
@@ -138,7 +137,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
138 | 137 | ||
139 | 138 | ||
140 | static void | 139 | static void |
141 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 140 | end (void *cls) |
142 | { | 141 | { |
143 | do_shutdown (); | 142 | do_shutdown (); |
144 | res = 0; | 143 | res = 0; |
@@ -152,8 +151,9 @@ zone_proc (void *cls, | |||
152 | unsigned int rd_count, | 151 | unsigned int rd_count, |
153 | const struct GNUNET_GNSRECORD_Data *rd) | 152 | const struct GNUNET_GNSRECORD_Data *rd) |
154 | { | 153 | { |
155 | static int returned_records; | 154 | static int returned_records; |
156 | static int fail = GNUNET_NO; | 155 | static int fail = GNUNET_NO; |
156 | |||
157 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 157 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
158 | "Comparing results name %s\n", | 158 | "Comparing results name %s\n", |
159 | name); | 159 | name); |
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index 35911e08f..c6c439e86 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -71,10 +71,9 @@ cleanup () | |||
71 | * Re-establish the connection to the service. | 71 | * Re-establish the connection to the service. |
72 | * | 72 | * |
73 | * @param cls handle to use to re-connect. | 73 | * @param cls handle to use to re-connect. |
74 | * @param tc scheduler context | ||
75 | */ | 74 | */ |
76 | static void | 75 | static void |
77 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 76 | endbadly (void *cls) |
78 | { | 77 | { |
79 | if (NULL != nsqe) | 78 | if (NULL != nsqe) |
80 | { | 79 | { |
@@ -87,7 +86,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
87 | 86 | ||
88 | 87 | ||
89 | static void | 88 | static void |
90 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 89 | end (void *cls) |
91 | { | 90 | { |
92 | cleanup (); | 91 | cleanup (); |
93 | res = 0; | 92 | res = 0; |
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index ed7f7088e..ef199cdf6 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -69,10 +69,9 @@ cleanup () | |||
69 | * Re-establish the connection to the service. | 69 | * Re-establish the connection to the service. |
70 | * | 70 | * |
71 | * @param cls handle to use to re-connect. | 71 | * @param cls handle to use to re-connect. |
72 | * @param tc scheduler context | ||
73 | */ | 72 | */ |
74 | static void | 73 | static void |
75 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 74 | endbadly (void *cls) |
76 | { | 75 | { |
77 | if (NULL != nsqe) | 76 | if (NULL != nsqe) |
78 | { | 77 | { |
@@ -85,8 +84,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
85 | 84 | ||
86 | 85 | ||
87 | static void | 86 | static void |
88 | end (void *cls, | 87 | end (void *cls) |
89 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
90 | { | 88 | { |
91 | cleanup (); | 89 | cleanup (); |
92 | res = 0; | 90 | res = 0; |
diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c index 7345e68da..d80676770 100644 --- a/src/namestore/test_namestore_api_store.c +++ b/src/namestore/test_namestore_api_store.c | |||
@@ -69,10 +69,9 @@ cleanup () | |||
69 | * Re-establish the connection to the service. | 69 | * Re-establish the connection to the service. |
70 | * | 70 | * |
71 | * @param cls handle to use to re-connect. | 71 | * @param cls handle to use to re-connect. |
72 | * @param tc scheduler context | ||
73 | */ | 72 | */ |
74 | static void | 73 | static void |
75 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 74 | endbadly (void *cls) |
76 | { | 75 | { |
77 | if (NULL != nsqe) | 76 | if (NULL != nsqe) |
78 | { | 77 | { |
@@ -85,7 +84,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
85 | 84 | ||
86 | 85 | ||
87 | static void | 86 | static void |
88 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 87 | end (void *cls) |
89 | { | 88 | { |
90 | cleanup (); | 89 | cleanup (); |
91 | res = 0; | 90 | res = 0; |
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index 22508b1d3..ed5a399bd 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -91,11 +91,9 @@ cleanup () | |||
91 | * Re-establish the connection to the service. | 91 | * Re-establish the connection to the service. |
92 | * | 92 | * |
93 | * @param cls handle to use to re-connect. | 93 | * @param cls handle to use to re-connect. |
94 | * @param tc scheduler context | ||
95 | */ | 94 | */ |
96 | static void | 95 | static void |
97 | endbadly (void *cls, | 96 | endbadly (void *cls) |
98 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
99 | { | 97 | { |
100 | if (NULL != nsqe) | 98 | if (NULL != nsqe) |
101 | { | 99 | { |
@@ -113,8 +111,7 @@ endbadly (void *cls, | |||
113 | 111 | ||
114 | 112 | ||
115 | static void | 113 | static void |
116 | end (void *cls, | 114 | end (void *cls) |
117 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
118 | { | 115 | { |
119 | cleanup (); | 116 | cleanup (); |
120 | res = 0; | 117 | res = 0; |
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c index 9f60fa43d..070c06870 100644 --- a/src/namestore/test_namestore_api_zone_iteration.c +++ b/src/namestore/test_namestore_api_zone_iteration.c | |||
@@ -66,7 +66,7 @@ static char *directory; | |||
66 | * @param tc scheduler context | 66 | * @param tc scheduler context |
67 | */ | 67 | */ |
68 | static void | 68 | static void |
69 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 69 | endbadly (void *cls) |
70 | { | 70 | { |
71 | if (NULL != zi) | 71 | if (NULL != zi) |
72 | { | 72 | { |
@@ -110,7 +110,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
110 | 110 | ||
111 | 111 | ||
112 | static void | 112 | static void |
113 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 113 | end (void *cls) |
114 | { | 114 | { |
115 | if (NULL != zi) | 115 | if (NULL != zi) |
116 | { | 116 | { |
diff --git a/src/namestore/test_namestore_api_zone_iteration_nick.c b/src/namestore/test_namestore_api_zone_iteration_nick.c index 98d3b882c..362533ef9 100644 --- a/src/namestore/test_namestore_api_zone_iteration_nick.c +++ b/src/namestore/test_namestore_api_zone_iteration_nick.c | |||
@@ -69,7 +69,7 @@ static char *directory; | |||
69 | * @param tc scheduler context | 69 | * @param tc scheduler context |
70 | */ | 70 | */ |
71 | static void | 71 | static void |
72 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 72 | endbadly (void *cls) |
73 | { | 73 | { |
74 | if (NULL != zi) | 74 | if (NULL != zi) |
75 | { | 75 | { |
@@ -113,7 +113,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
113 | 113 | ||
114 | 114 | ||
115 | static void | 115 | static void |
116 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 116 | end (void *cls) |
117 | { | 117 | { |
118 | if (NULL != zi) | 118 | if (NULL != zi) |
119 | { | 119 | { |
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c index dc2129b88..1a0279f50 100644 --- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c +++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |||
@@ -66,14 +66,13 @@ static char *directory; | |||
66 | * @param tc scheduler context | 66 | * @param tc scheduler context |
67 | */ | 67 | */ |
68 | static void | 68 | static void |
69 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 69 | endbadly (void *cls) |
70 | { | 70 | { |
71 | if (NULL != zi) | 71 | if (NULL != zi) |
72 | { | 72 | { |
73 | GNUNET_NAMESTORE_zone_iteration_stop (zi); | 73 | GNUNET_NAMESTORE_zone_iteration_stop (zi); |
74 | zi = NULL; | 74 | zi = NULL; |
75 | } | 75 | } |
76 | |||
77 | if (nsh != NULL) | 76 | if (nsh != NULL) |
78 | GNUNET_NAMESTORE_disconnect (nsh); | 77 | GNUNET_NAMESTORE_disconnect (nsh); |
79 | nsh = NULL; | 78 | nsh = NULL; |
@@ -110,13 +109,13 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
110 | 109 | ||
111 | 110 | ||
112 | static void | 111 | static void |
113 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 112 | end (void *cls) |
114 | { | 113 | { |
115 | if (NULL != zi) | 114 | if (NULL != zi) |
116 | { | 115 | { |
117 | GNUNET_NAMESTORE_zone_iteration_stop (zi); | 116 | GNUNET_NAMESTORE_zone_iteration_stop (zi); |
118 | zi = NULL; | 117 | zi = NULL; |
119 | } | 118 | } |
120 | 119 | ||
121 | if (endbadly_task != NULL) | 120 | if (endbadly_task != NULL) |
122 | { | 121 | { |
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index 8700c6698..52645b5eb 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -63,16 +63,15 @@ static char *directory; | |||
63 | * Re-establish the connection to the service. | 63 | * Re-establish the connection to the service. |
64 | * | 64 | * |
65 | * @param cls handle to use to re-connect. | 65 | * @param cls handle to use to re-connect. |
66 | * @param tc scheduler context | ||
67 | */ | 66 | */ |
68 | static void | 67 | static void |
69 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 68 | endbadly (void *cls) |
70 | { | 69 | { |
71 | if (NULL != zi) | 70 | if (NULL != zi) |
72 | { | 71 | { |
73 | GNUNET_NAMESTORE_zone_iteration_stop (zi); | 72 | GNUNET_NAMESTORE_zone_iteration_stop (zi); |
74 | zi = NULL; | 73 | zi = NULL; |
75 | } | 74 | } |
76 | 75 | ||
77 | if (nsh != NULL) | 76 | if (nsh != NULL) |
78 | GNUNET_NAMESTORE_disconnect (nsh); | 77 | GNUNET_NAMESTORE_disconnect (nsh); |
@@ -110,13 +109,13 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
110 | 109 | ||
111 | 110 | ||
112 | static void | 111 | static void |
113 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 112 | end (void *cls) |
114 | { | 113 | { |
115 | if (NULL != zi) | 114 | if (NULL != zi) |
116 | { | 115 | { |
117 | GNUNET_NAMESTORE_zone_iteration_stop (zi); | 116 | GNUNET_NAMESTORE_zone_iteration_stop (zi); |
118 | zi = NULL; | 117 | zi = NULL; |
119 | } | 118 | } |
120 | 119 | ||
121 | if (endbadly_task != NULL) | 120 | if (endbadly_task != NULL) |
122 | { | 121 | { |
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index 348b9178b..12bc870b4 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c | |||
@@ -63,10 +63,9 @@ static char *directory; | |||
63 | * Re-establish the connection to the service. | 63 | * Re-establish the connection to the service. |
64 | * | 64 | * |
65 | * @param cls handle to use to re-connect. | 65 | * @param cls handle to use to re-connect. |
66 | * @param tc scheduler context | ||
67 | */ | 66 | */ |
68 | static void | 67 | static void |
69 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 68 | endbadly (void *cls) |
70 | { | 69 | { |
71 | if (nsh != NULL) | 70 | if (nsh != NULL) |
72 | GNUNET_NAMESTORE_disconnect (nsh); | 71 | GNUNET_NAMESTORE_disconnect (nsh); |
@@ -79,7 +78,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
79 | 78 | ||
80 | 79 | ||
81 | static void | 80 | static void |
82 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 81 | end (void *cls) |
83 | { | 82 | { |
84 | if (endbadly_task != NULL) | 83 | if (endbadly_task != NULL) |
85 | { | 84 | { |