X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fgnunet-service-transport_blacklist.c;h=105f1fcaf8bf73de058b67543cc9d0e4ef5f3cd6;hb=f181f6eaf8cdb1fdb47dc98cf171ad1be842b441;hp=abb53641419ca713d9a7472b7e2473a0357a15a9;hpb=5746309cb4be2073d550ad7a6885e918631dbc38;p=oweals%2Fgnunet.git diff --git a/src/transport/gnunet-service-transport_blacklist.c b/src/transport/gnunet-service-transport_blacklist.c index abb536414..105f1fcaf 100644 --- a/src/transport/gnunet-service-transport_blacklist.c +++ b/src/transport/gnunet-service-transport_blacklist.c @@ -161,8 +161,8 @@ static struct GNUNET_CONTAINER_MultiHashMap *blacklist; * @param cls the 'struct BlacklistCheck*' * @param tc unused */ -static void do_blacklist_check (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc); +static void +do_blacklist_check (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); /** @@ -328,8 +328,8 @@ read_blacklist_file () #endif memcpy (&enc, &data[pos], sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded)); if (!isspace - ((unsigned char) enc. - encoding[sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded) - 1])) + ((unsigned char) + enc.encoding[sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded) - 1])) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _ @@ -547,14 +547,16 @@ struct TestConnectionContext * blacklisting client. * * @param cls the 'struct TestConnectionContest' - * @param pid neighbour's identity + * @param neighbour neighbour's identity * @param ats performance data * @param ats_count number of entries in ats (excluding 0-termination) + * @param address the address */ static void test_connection_ok (void *cls, const struct GNUNET_PeerIdentity *neighbour, - const struct GNUNET_TRANSPORT_ATS_Information *ats, - uint32_t ats_count) + const struct GNUNET_ATS_Information *ats, + uint32_t ats_count, + const struct GNUNET_HELLO_Address *address) { struct TestConnectionContext *tcc = cls; struct GST_BlacklistCheck *bc; @@ -648,7 +650,7 @@ GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, bl->waiting_for_reply = GNUNET_NO; if (NULL != bc) { - /* only run this if the blacklist check has not been + /* only run this if the blacklist check has not been * cancelled in the meantime... */ if (ntohl (msg->is_allowed) == GNUNET_SYSERR) { @@ -683,7 +685,7 @@ GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, /** * Add the given peer to the blacklist (for the given transport). - * + * * @param peer peer to blacklist * @param transport_name transport to blacklist for this peer, NULL for all */ @@ -780,7 +782,7 @@ GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, /** * Cancel a blacklist check. - * + * * @param bc check to cancel */ void