diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-21 22:42:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-21 22:42:58 +0000 |
commit | f3910e0b479e7a4693d8dc5341e4c8a2769c1aaa (patch) | |
tree | 5565690f8a3c41fef3d1c6838b92f875dff6a8f6 /src/core | |
parent | 16b954786d5a14360c7f974f3554e041e3f32ed1 (diff) | |
download | gnunet-f3910e0b479e7a4693d8dc5341e4c8a2769c1aaa.tar.gz gnunet-f3910e0b479e7a4693d8dc5341e4c8a2769c1aaa.zip |
did not help
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 8 | ||||
-rw-r--r-- | src/core/gnunet-service-core_clients.h | 4 | ||||
-rw-r--r-- | 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, | |||
620 | const struct GNUNET_ATS_Information *atsi, | 620 | const struct GNUNET_ATS_Information *atsi, |
621 | unsigned int atsi_count, | 621 | unsigned int atsi_count, |
622 | const struct GSC_TypeMap *tmap_old, | 622 | const struct GSC_TypeMap *tmap_old, |
623 | const struct GSC_TypeMap *tmap_new, | 623 | const struct GSC_TypeMap *tmap_new) |
624 | int is_new) | ||
625 | { | 624 | { |
626 | struct ConnectNotifyMessage *cnm; | 625 | struct ConnectNotifyMessage *cnm; |
627 | size_t size; | 626 | size_t size; |
@@ -641,8 +640,6 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
641 | if (tmap_old != NULL) | 640 | if (tmap_old != NULL) |
642 | old_match = GNUNET_YES; | 641 | old_match = GNUNET_YES; |
643 | } | 642 | } |
644 | if (GNUNET_YES == is_new) | ||
645 | old_match = GNUNET_NO; | ||
646 | if (old_match == new_match) | 643 | if (old_match == new_match) |
647 | return; /* no change */ | 644 | return; /* no change */ |
648 | if (old_match == GNUNET_NO) | 645 | if (old_match == GNUNET_NO) |
@@ -710,8 +707,7 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne | |||
710 | for (c = client_head; c != NULL; c = c->next) | 707 | for (c = client_head; c != NULL; c = c->next) |
711 | GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi, | 708 | GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi, |
712 | atsi_count, | 709 | atsi_count, |
713 | tmap_old, tmap_new, | 710 | tmap_old, tmap_new); |
714 | GNUNET_NO); | ||
715 | } | 711 | } |
716 | 712 | ||
717 | 713 | ||
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, | |||
56 | * @param atsi_count number of entries in 'ats' array | 56 | * @param atsi_count number of entries in 'ats' array |
57 | * @param tmap_old previous type map for the neighbour, NULL for disconnect | 57 | * @param tmap_old previous type map for the neighbour, NULL for disconnect |
58 | * @param tmap_new updated type map for the neighbour, NULL for disconnect | 58 | * @param tmap_new updated type map for the neighbour, NULL for disconnect |
59 | * @param is_new GNUNET_YES if this is a completely new neighbour | ||
60 | */ | 59 | */ |
61 | void | 60 | void |
62 | GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | 61 | GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, |
@@ -64,8 +63,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
64 | const struct GNUNET_ATS_Information *atsi, | 63 | const struct GNUNET_ATS_Information *atsi, |
65 | unsigned int atsi_count, | 64 | unsigned int atsi_count, |
66 | const struct GSC_TypeMap *tmap_old, | 65 | const struct GSC_TypeMap *tmap_old, |
67 | const struct GSC_TypeMap *tmap_new, | 66 | const struct GSC_TypeMap *tmap_new); |
68 | int is_new); | ||
69 | 67 | ||
70 | 68 | ||
71 | /** | 69 | /** |
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, | |||
256 | &session->peer, | 256 | &session->peer, |
257 | NULL, 0, /* FIXME: ATS!? */ | 257 | NULL, 0, /* FIXME: ATS!? */ |
258 | NULL, /* old TMAP: none */ | 258 | NULL, /* old TMAP: none */ |
259 | session->tmap, | 259 | session->tmap); |
260 | GNUNET_YES); | ||
261 | return GNUNET_OK; | 260 | return GNUNET_OK; |
262 | } | 261 | } |
263 | 262 | ||