aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-nat-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/gnunet-nat-server.c')
-rw-r--r--src/nat/gnunet-nat-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nat/gnunet-nat-server.c b/src/nat/gnunet-nat-server.c
index 31a8f294b..0069303ca 100644
--- a/src/nat/gnunet-nat-server.c
+++ b/src/nat/gnunet-nat-server.c
@@ -92,13 +92,14 @@ struct TcpContext
92 * (or once we failed to connect...). 92 * (or once we failed to connect...).
93 * 93 *
94 * @param cls the 'struct TcpContext' 94 * @param cls the 'struct TcpContext'
95 * @param tc scheduler context
96 */ 95 */
97static void 96static void
98tcp_send (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 97tcp_send (void *cls)
99{ 98{
100 struct TcpContext *ctx = cls; 99 struct TcpContext *ctx = cls;
100 const struct GNUNET_SCHEDULER_TaskContext *tc;
101 101
102 tc = GNUNET_SCHEDULER_get_task_context ();
102 if ((NULL != tc->write_ready) && 103 if ((NULL != tc->write_ready) &&
103 (GNUNET_NETWORK_fdset_isset (tc->write_ready, ctx->s))) 104 (GNUNET_NETWORK_fdset_isset (tc->write_ready, ctx->s)))
104 { 105 {
@@ -228,10 +229,9 @@ test (void *cls, struct GNUNET_SERVER_Client *client,
228 * Task run during shutdown. 229 * Task run during shutdown.
229 * 230 *
230 * @param cls unused 231 * @param cls unused
231 * @param tc scheduler context
232 */ 232 */
233static void 233static void
234shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 234shutdown_task (void *cls)
235{ 235{
236 GNUNET_SERVER_destroy (server); 236 GNUNET_SERVER_destroy (server);
237 server = NULL; 237 server = NULL;