aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/test_dht_api.c')
-rw-r--r--src/dht/test_dht_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c
index 5c6913740..e4f6e5b56 100644
--- a/src/dht/test_dht_api.c
+++ b/src/dht/test_dht_api.c
@@ -59,7 +59,7 @@ struct RetryContext
59 /** 59 /**
60 * The task identifier of the retry task, so it can be cancelled. 60 * The task identifier of the retry task, so it can be cancelled.
61 */ 61 */
62 GNUNET_SCHEDULER_TaskIdentifier retry_task; 62 struct GNUNET_SCHEDULER_Task * retry_task;
63 63
64}; 64};
65 65
@@ -72,7 +72,7 @@ struct RetryContext retry_context;
72 72
73static int ok = 1; 73static int ok = 1;
74 74
75static GNUNET_SCHEDULER_TaskIdentifier die_task; 75static struct GNUNET_SCHEDULER_Task * die_task;
76 76
77 77
78#if VERBOSE 78#if VERBOSE
@@ -86,7 +86,7 @@ static void
86end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 86end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
87{ 87{
88 GNUNET_SCHEDULER_cancel (die_task); 88 GNUNET_SCHEDULER_cancel (die_task);
89 die_task = GNUNET_SCHEDULER_NO_TASK; 89 die_task = NULL;
90 GNUNET_DHT_disconnect (dht_handle); 90 GNUNET_DHT_disconnect (dht_handle);
91 dht_handle = NULL; 91 dht_handle = NULL;
92 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 92 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -105,7 +105,7 @@ end_badly ()
105 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping get request!\n"); 105 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping get request!\n");
106 GNUNET_DHT_get_stop (get_handle); 106 GNUNET_DHT_get_stop (get_handle);
107 } 107 }
108 if (retry_context.retry_task != GNUNET_SCHEDULER_NO_TASK) 108 if (retry_context.retry_task != NULL)
109 GNUNET_SCHEDULER_cancel (retry_context.retry_task); 109 GNUNET_SCHEDULER_cancel (retry_context.retry_task);
110 GNUNET_DHT_disconnect (dht_handle); 110 GNUNET_DHT_disconnect (dht_handle);
111 dht_handle = NULL; 111 dht_handle = NULL;