diff options
Diffstat (limited to 'src/transport/test_transport_api_manipulation_send_tcp.c')
-rw-r--r-- | src/transport/test_transport_api_manipulation_send_tcp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/test_transport_api_manipulation_send_tcp.c b/src/transport/test_transport_api_manipulation_send_tcp.c index c2eaf7a50..22b420c27 100644 --- a/src/transport/test_transport_api_manipulation_send_tcp.c +++ b/src/transport/test_transport_api_manipulation_send_tcp.c | |||
@@ -107,7 +107,7 @@ end () | |||
107 | 107 | ||
108 | 108 | ||
109 | static void | 109 | static void |
110 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 110 | end_badly (void *cls) |
111 | { | 111 | { |
112 | die_task = NULL; | 112 | die_task = NULL; |
113 | 113 | ||
@@ -160,7 +160,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
160 | 160 | ||
161 | 161 | ||
162 | static void | 162 | static void |
163 | sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | 163 | sendtask (void *cls); |
164 | 164 | ||
165 | 165 | ||
166 | static void | 166 | static void |
@@ -284,13 +284,14 @@ notify_ready (void *cls, size_t size, void *buf) | |||
284 | 284 | ||
285 | 285 | ||
286 | static void | 286 | static void |
287 | sendtask (void *cls, | 287 | sendtask (void *cls) |
288 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
289 | { | 288 | { |
290 | struct GNUNET_TIME_Relative delay; | 289 | struct GNUNET_TIME_Relative delay; |
291 | struct GNUNET_ATS_Properties prop; | 290 | struct GNUNET_ATS_Properties prop; |
291 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
292 | 292 | ||
293 | send_task = NULL; | 293 | send_task = NULL; |
294 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
294 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) | 295 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
295 | return; | 296 | return; |
296 | char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id)); | 297 | char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id)); |