aboutsummaryrefslogtreecommitdiff
path: root/src/dv/gnunet-service-dv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dv/gnunet-service-dv.c')
-rw-r--r--src/dv/gnunet-service-dv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index b16f12938..9fb008237 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -2755,12 +2755,11 @@ static int add_all_direct_neighbors (void *cls,
2755 * @param cls closure 2755 * @param cls closure
2756 * @param peer id of the peer, NULL for last call 2756 * @param peer id of the peer, NULL for last call
2757 * @param hello hello message for the peer (can be NULL) 2757 * @param hello hello message for the peer (can be NULL)
2758 * @param trust amount of trust we have in the peer
2759 */ 2758 */
2760static void 2759static void
2761process_peerinfo (void *cls, 2760process_peerinfo (void *cls,
2762 const struct GNUNET_PeerIdentity *peer, 2761 const struct GNUNET_PeerIdentity *peer,
2763 const struct GNUNET_HELLO_Message *hello, uint32_t trust) 2762 const struct GNUNET_HELLO_Message *hello)
2764{ 2763{
2765 struct PeerIteratorContext *peerinfo_iterator = cls; 2764 struct PeerIteratorContext *peerinfo_iterator = cls;
2766 struct DirectNeighbor *neighbor = peerinfo_iterator->neighbor; 2765 struct DirectNeighbor *neighbor = peerinfo_iterator->neighbor;
@@ -2779,7 +2778,6 @@ process_peerinfo (void *cls,
2779#endif 2778#endif
2780 peerinfo_iterator->ic = GNUNET_PEERINFO_iterate(peerinfo_handle, 2779 peerinfo_iterator->ic = GNUNET_PEERINFO_iterate(peerinfo_handle,
2781 &peerinfo_iterator->neighbor->identity, 2780 &peerinfo_iterator->neighbor->identity,
2782 0,
2783 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3), 2781 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3),
2784 &process_peerinfo, 2782 &process_peerinfo,
2785 peerinfo_iterator); 2783 peerinfo_iterator);
@@ -2856,7 +2854,6 @@ void handle_core_connect (void *cls,
2856 peerinfo_iterator->neighbor = neighbor; 2854 peerinfo_iterator->neighbor = neighbor;
2857 peerinfo_iterator->ic = GNUNET_PEERINFO_iterate (peerinfo_handle, 2855 peerinfo_iterator->ic = GNUNET_PEERINFO_iterate (peerinfo_handle,
2858 peer, 2856 peer,
2859 0,
2860 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3), 2857 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3),
2861 &process_peerinfo, 2858 &process_peerinfo,
2862 peerinfo_iterator); 2859 peerinfo_iterator);
@@ -2988,6 +2985,7 @@ run (void *cls,
2988 &core_init, 2985 &core_init,
2989 &handle_core_connect, 2986 &handle_core_connect,
2990 &handle_core_disconnect, 2987 &handle_core_disconnect,
2988 NULL,
2991 NULL, 2989 NULL,
2992 GNUNET_NO, 2990 GNUNET_NO,
2993 NULL, 2991 NULL,