diff options
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index a1fe90cc5..6894d2482 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -513,10 +513,9 @@ destroy_channel (struct GNUNET_CADET_Channel *ch, int call_cleaner) | |||
513 | * Notify client that the transmission has timed out | 513 | * Notify client that the transmission has timed out |
514 | * | 514 | * |
515 | * @param cls closure | 515 | * @param cls closure |
516 | * @param tc task context | ||
517 | */ | 516 | */ |
518 | static void | 517 | static void |
519 | timeout_transmission (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 518 | timeout_transmission (void *cls) |
520 | { | 519 | { |
521 | struct GNUNET_CADET_TransmitHandle *th = cls; | 520 | struct GNUNET_CADET_TransmitHandle *th = cls; |
522 | struct GNUNET_CADET_Handle *cadet = th->channel->cadet; | 521 | struct GNUNET_CADET_Handle *cadet = th->channel->cadet; |
@@ -594,12 +593,12 @@ send_ack (struct GNUNET_CADET_Channel *ch) | |||
594 | 593 | ||
595 | /** | 594 | /** |
596 | * Reconnect callback: tries to reconnect again after a failer previous | 595 | * Reconnect callback: tries to reconnect again after a failer previous |
597 | * reconnecttion | 596 | * reconnection. |
597 | * | ||
598 | * @param cls closure (cadet handle) | 598 | * @param cls closure (cadet handle) |
599 | * @param tc task context | ||
600 | */ | 599 | */ |
601 | static void | 600 | static void |
602 | reconnect_cbk (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | 601 | reconnect_cbk (void *cls); |
603 | 602 | ||
604 | 603 | ||
605 | /** | 604 | /** |
@@ -696,15 +695,17 @@ do_reconnect (struct GNUNET_CADET_Handle *h) | |||
696 | /** | 695 | /** |
697 | * Reconnect callback: tries to reconnect again after a failer previous | 696 | * Reconnect callback: tries to reconnect again after a failer previous |
698 | * reconnecttion | 697 | * reconnecttion |
698 | * | ||
699 | * @param cls closure (cadet handle) | 699 | * @param cls closure (cadet handle) |
700 | * @param tc task context | ||
701 | */ | 700 | */ |
702 | static void | 701 | static void |
703 | reconnect_cbk (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 702 | reconnect_cbk (void *cls) |
704 | { | 703 | { |
705 | struct GNUNET_CADET_Handle *h = cls; | 704 | struct GNUNET_CADET_Handle *h = cls; |
705 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
706 | 706 | ||
707 | h->reconnect_task = NULL; | 707 | h->reconnect_task = NULL; |
708 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
708 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 709 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
709 | return; | 710 | return; |
710 | do_reconnect (h); | 711 | do_reconnect (h); |
@@ -2171,4 +2172,3 @@ GNUNET_CADET_mq_create (struct GNUNET_CADET_Channel *channel) | |||
2171 | NULL); /* no handler cls */ | 2172 | NULL); /* no handler cls */ |
2172 | return mq; | 2173 | return mq; |
2173 | } | 2174 | } |
2174 | |||