diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-07 06:27:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-07 06:27:10 +0000 |
commit | ac2de52a5de68f6f4f13b7aa01a481869fffc6aa (patch) | |
tree | 856c9f0b2f55f8cae99f3c7b3bf22beaecbf58da /src/dv/gnunet-service-dv.c | |
parent | c1a3c11f8665432d9db6d549c28c0329668e66af (diff) | |
download | gnunet-ac2de52a5de68f6f4f13b7aa01a481869fffc6aa.tar.gz gnunet-ac2de52a5de68f6f4f13b7aa01a481869fffc6aa.zip |
hacks from trip
Diffstat (limited to 'src/dv/gnunet-service-dv.c')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 6 |
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 | */ |
2760 | static void | 2759 | static void |
2761 | process_peerinfo (void *cls, | 2760 | process_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, |