diff options
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 23 |
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 | */ |
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 | { |