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 | |
parent | c1a3c11f8665432d9db6d549c28c0329668e66af (diff) | |
download | gnunet-ac2de52a5de68f6f4f13b7aa01a481869fffc6aa.tar.gz gnunet-ac2de52a5de68f6f4f13b7aa01a481869fffc6aa.zip |
hacks from trip
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 6 | ||||
-rw-r--r-- | src/dv/test_transport_api_dv.c | 20 |
2 files changed, 12 insertions, 14 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, |
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index 8157d00e7..3e66388fe 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c | |||
@@ -534,14 +534,14 @@ init_notify_peer1 (void *cls, | |||
534 | * Connect to the receiving peer | 534 | * Connect to the receiving peer |
535 | */ | 535 | */ |
536 | pos->peer2handle = GNUNET_CORE_connect (sched, | 536 | pos->peer2handle = GNUNET_CORE_connect (sched, |
537 | pos->peer2->cfg, | 537 | pos->peer2->cfg, |
538 | TIMEOUT, | 538 | TIMEOUT, |
539 | pos, | 539 | pos, |
540 | &init_notify_peer2, | 540 | &init_notify_peer2, |
541 | NULL, | 541 | NULL, |
542 | NULL, | 542 | NULL, |
543 | NULL, | 543 | NULL, NULL, |
544 | GNUNET_YES, NULL, GNUNET_YES, handlers); | 544 | GNUNET_YES, NULL, GNUNET_YES, handlers); |
545 | 545 | ||
546 | } | 546 | } |
547 | 547 | ||
@@ -578,7 +578,7 @@ send_test_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) | |||
578 | TIMEOUT, | 578 | TIMEOUT, |
579 | pos, | 579 | pos, |
580 | &init_notify_peer1, | 580 | &init_notify_peer1, |
581 | NULL, | 581 | NULL, NULL, |
582 | NULL, | 582 | NULL, |
583 | NULL, | 583 | NULL, |
584 | GNUNET_NO, NULL, GNUNET_NO, no_handlers); | 584 | GNUNET_NO, NULL, GNUNET_NO, no_handlers); |
@@ -893,7 +893,7 @@ peers_started_callback (void *cls, | |||
893 | GNUNET_assert(GNUNET_SYSERR != GNUNET_CONTAINER_multihashmap_put(peer_daemon_hash, &id->hashPubKey, d, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); | 893 | GNUNET_assert(GNUNET_SYSERR != GNUNET_CONTAINER_multihashmap_put(peer_daemon_hash, &id->hashPubKey, d, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); |
894 | 894 | ||
895 | new_peer = GNUNET_malloc(sizeof(struct PeerContext)); | 895 | new_peer = GNUNET_malloc(sizeof(struct PeerContext)); |
896 | new_peer->peer_handle = GNUNET_CORE_connect(sched, cfg, GNUNET_TIME_UNIT_FOREVER_REL, d, NULL, &all_connect_handler, NULL, NULL, GNUNET_NO, NULL, GNUNET_NO, no_handlers); | 896 | new_peer->peer_handle = GNUNET_CORE_connect(sched, cfg, GNUNET_TIME_UNIT_FOREVER_REL, d, NULL, &all_connect_handler, NULL, NULL, NULL, GNUNET_NO, NULL, GNUNET_NO, no_handlers); |
897 | new_peer->daemon = d; | 897 | new_peer->daemon = d; |
898 | new_peer->next = all_peers; | 898 | new_peer->next = all_peers; |
899 | all_peers = new_peer; | 899 | all_peers = new_peer; |