aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 13:48:23 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 13:48:23 +0100
commit32610d5d9238ab3f31f8fc6494d9cc0b5d18d290 (patch)
treec5617dabb6f6970438fdf2f3ba35e967fdc0ff05 /src/dht
parent0d2ff615ee0b84852e80d96d5373ebead4c3e423 (diff)
downloadgnunet-32610d5d9238ab3f31f8fc6494d9cc0b5d18d290.tar.gz
gnunet-32610d5d9238ab3f31f8fc6494d9cc0b5d18d290.zip
fix test_dht_montior abortion
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/test_dht_monitor.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dht/test_dht_monitor.c b/src/dht/test_dht_monitor.c
index 223488b0f..a175890f0 100644
--- a/src/dht/test_dht_monitor.c
+++ b/src/dht/test_dht_monitor.c
@@ -90,7 +90,7 @@ static unsigned int NUM_PEERS = 3;
90/** 90/**
91 * Task called to disconnect peers. 91 * Task called to disconnect peers.
92 */ 92 */
93static struct GNUNET_SCHEDULER_Task * timeout_task; 93static struct GNUNET_SCHEDULER_Task *timeout_task;
94 94
95/** 95/**
96 * Task to do DHT_puts 96 * Task to do DHT_puts
@@ -107,12 +107,12 @@ static unsigned int monitor_counter;
107 * Terminates active get operations and shuts down 107 * Terminates active get operations and shuts down
108 * the testbed. 108 * the testbed.
109 * 109 *
110 * @param cls the 'struct GNUNET_DHT_TestContext' 110 * @param cls the `struct GNUNET_DHT_TestContext`
111 */ 111 */
112static void 112static void
113shutdown_task (void *cls) 113shutdown_task (void *cls)
114{ 114{
115 struct GNUNET_DHT_TEST_Context *ctx = cls; 115 struct GNUNET_DHT_TestContext *ctx = cls;
116 unsigned int i; 116 unsigned int i;
117 struct GetOperation *get_op; 117 struct GetOperation *get_op;
118 118
@@ -146,10 +146,10 @@ shutdown_task (void *cls)
146 * Terminates active get operations and shuts down 146 * Terminates active get operations and shuts down
147 * the testbed. 147 * the testbed.
148 * 148 *
149 * @param cls the 'struct GNUNET_DHT_TestContext' 149 * @param cls NULL
150 */ 150 */
151static void 151static void
152timeout_task (void *cls) 152timeout_task_cb (void *cls)
153{ 153{
154 timeout_task = NULL; 154 timeout_task = NULL;
155 GNUNET_SCHEDULER_shutdown (); 155 GNUNET_SCHEDULER_shutdown ();
@@ -412,8 +412,8 @@ run (void *cls,
412 } 412 }
413 } 413 }
414 timeout_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, 414 timeout_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
415 &timeout_task, 415 &timeout_task_cb,
416 ctx); 416 NULL);
417 GNUNET_SCHEDULER_add_shutdown (&shutdown_task, 417 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
418 ctx); 418 ctx);
419} 419}