aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_stop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_stop.c23
1 files changed, 11 insertions, 12 deletions
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 */
68static void 67static void
69endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 68endbadly (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
112static void 111static void
113end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 112end (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 {