From f3910e0b479e7a4693d8dc5341e4c8a2769c1aaa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Oct 2011 22:42:58 +0000 Subject: [PATCH] did not help --- src/core/gnunet-service-core_clients.c | 8 ++------ src/core/gnunet-service-core_clients.h | 4 +--- src/core/gnunet-service-core_sessions.c | 3 +-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index ec286a888..742522369 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -620,8 +620,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, - const struct GSC_TypeMap *tmap_new, - int is_new) + const struct GSC_TypeMap *tmap_new) { struct ConnectNotifyMessage *cnm; size_t size; @@ -641,8 +640,6 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, if (tmap_old != NULL) old_match = GNUNET_YES; } - if (GNUNET_YES == is_new) - old_match = GNUNET_NO; if (old_match == new_match) return; /* no change */ if (old_match == GNUNET_NO) @@ -710,8 +707,7 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne for (c = client_head; c != NULL; c = c->next) GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi, atsi_count, - tmap_old, tmap_new, - GNUNET_NO); + tmap_old, tmap_new); } diff --git a/src/core/gnunet-service-core_clients.h b/src/core/gnunet-service-core_clients.h index 21dec769a..2385efc05 100644 --- a/src/core/gnunet-service-core_clients.h +++ b/src/core/gnunet-service-core_clients.h @@ -56,7 +56,6 @@ GSC_CLIENTS_send_to_client (struct GNUNET_SERVER_Client *client, * @param atsi_count number of entries in 'ats' array * @param tmap_old previous type map for the neighbour, NULL for disconnect * @param tmap_new updated type map for the neighbour, NULL for disconnect - * @param is_new GNUNET_YES if this is a completely new neighbour */ void GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, @@ -64,8 +63,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, - const struct GSC_TypeMap *tmap_new, - int is_new); + const struct GSC_TypeMap *tmap_new); /** diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 587c2e12f..c239f27c1 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c @@ -256,8 +256,7 @@ notify_client_about_session (void *cls, &session->peer, NULL, 0, /* FIXME: ATS!? */ NULL, /* old TMAP: none */ - session->tmap, - GNUNET_YES); + session->tmap); return GNUNET_OK; } -- 2.25.1