X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore_api_iterate_peers.c;h=7b28842fd58d9e52055e28208e8a0c9ab9ba8a58;hb=6d754e6c89fda8cb0da00c4152ffc6dcc707e6ce;hp=7bf40a678c645c72d79528e432108935307ea85d;hpb=f44c0036572d5557d2496748a4190a61e40e61ff;p=oweals%2Fgnunet.git diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c index 7bf40a678..7b28842fd 100644 --- a/src/core/core_api_iterate_peers.c +++ b/src/core/core_api_iterate_peers.c @@ -101,7 +101,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg) ats_count = ntohl (connect_message->ats_count); if (msize != sizeof (struct ConnectNotifyMessage) + - ats_count * sizeof (struct GNUNET_ATS_Information)) + ats_count * sizeof (struct GNUNET_ATS_Information)) { GNUNET_break (0); if (request_context->peer_cb != NULL) @@ -113,8 +113,8 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg) /* Normal case */ if (request_context->peer_cb != NULL) request_context->peer_cb (request_context->cb_cls, &connect_message->peer, - (const struct GNUNET_ATS_Information *) &connect_message[1], - ats_count); + (const struct GNUNET_ATS_Information *) + &connect_message[1], ats_count); GNUNET_CLIENT_receive (request_context->client, &receive_info, request_context, GNUNET_TIME_UNIT_FOREVER_REL); }