diff options
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/util/connection.c b/src/util/connection.c index 39cb1dde2..9aeca9096 100644 --- a/src/util/connection.c +++ b/src/util/connection.c | |||
@@ -506,8 +506,8 @@ GNUNET_CONNECTION_get_address (struct GNUNET_CONNECTION_Handle *sock, | |||
506 | * @param cls our connection handle | 506 | * @param cls our connection handle |
507 | * @param tc task context describing why we are here | 507 | * @param tc task context describing why we are here |
508 | */ | 508 | */ |
509 | static void receive_again (void *cls, | 509 | static void |
510 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 510 | receive_again (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
511 | 511 | ||
512 | 512 | ||
513 | /** | 513 | /** |
@@ -619,8 +619,8 @@ destroy_continuation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
619 | * @param cls our connection handle | 619 | * @param cls our connection handle |
620 | * @param tc task context describing why we are here | 620 | * @param tc task context describing why we are here |
621 | */ | 621 | */ |
622 | static void transmit_ready (void *cls, | 622 | static void |
623 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 623 | transmit_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
624 | 624 | ||
625 | 625 | ||
626 | /** | 626 | /** |
@@ -867,13 +867,13 @@ try_connect_using_address (void *cls, const struct sockaddr *addr, | |||
867 | if (h->nth.notify_ready != NULL) | 867 | if (h->nth.notify_ready != NULL) |
868 | delay = | 868 | delay = |
869 | GNUNET_TIME_relative_min (delay, | 869 | GNUNET_TIME_relative_min (delay, |
870 | GNUNET_TIME_absolute_get_remaining (h->nth. | 870 | GNUNET_TIME_absolute_get_remaining (h-> |
871 | transmit_timeout)); | 871 | nth.transmit_timeout)); |
872 | if (h->receiver != NULL) | 872 | if (h->receiver != NULL) |
873 | delay = | 873 | delay = |
874 | GNUNET_TIME_relative_min (delay, | 874 | GNUNET_TIME_relative_min (delay, |
875 | GNUNET_TIME_absolute_get_remaining (h-> | 875 | GNUNET_TIME_absolute_get_remaining |
876 | receive_timeout)); | 876 | (h->receive_timeout)); |
877 | ap->task = | 877 | ap->task = |
878 | GNUNET_SCHEDULER_add_write_net (delay, ap->sock, | 878 | GNUNET_SCHEDULER_add_write_net (delay, ap->sock, |
879 | &connect_probe_continuation, ap); | 879 | &connect_probe_continuation, ap); |
@@ -1152,9 +1152,8 @@ receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1152 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1152 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1153 | "Receive from `%s' encounters error: time out by %llums... (%p)\n", | 1153 | "Receive from `%s' encounters error: time out by %llums... (%p)\n", |
1154 | GNUNET_a2s (sh->addr, sh->addrlen), | 1154 | GNUNET_a2s (sh->addr, sh->addrlen), |
1155 | GNUNET_TIME_absolute_get_duration (sh-> | 1155 | GNUNET_TIME_absolute_get_duration (sh->receive_timeout). |
1156 | receive_timeout).rel_value, | 1156 | rel_value, sh); |
1157 | sh); | ||
1158 | #endif | 1157 | #endif |
1159 | signal_timeout (sh); | 1158 | signal_timeout (sh); |
1160 | return; | 1159 | return; |