diff options
Diffstat (limited to 'src/dht/test_dht_monitor.c')
-rw-r--r-- | src/dht/test_dht_monitor.c | 14 |
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 | */ |
93 | static struct GNUNET_SCHEDULER_Task * timeout_task; | 93 | static 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 | */ |
112 | static void | 112 | static void |
113 | shutdown_task (void *cls) | 113 | shutdown_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 | */ |
151 | static void | 151 | static void |
152 | timeout_task (void *cls) | 152 | timeout_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 | } |