aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht_api_find_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dht_api_find_peer.c')
-rw-r--r--src/dht/dht_api_find_peer.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/dht/dht_api_find_peer.c b/src/dht/dht_api_find_peer.c
index bcf1b50b7..a9ecc7b59 100644
--- a/src/dht/dht_api_find_peer.c
+++ b/src/dht/dht_api_find_peer.c
@@ -71,8 +71,7 @@ struct GNUNET_DHT_FindPeerHandle
71 * @param reply response 71 * @param reply response
72 */ 72 */
73static void 73static void
74find_peer_reply_iterator (void *cls, 74find_peer_reply_iterator (void *cls, const GNUNET_HashCode * key,
75 const GNUNET_HashCode * key,
76 const struct GNUNET_PeerIdentity *const 75 const struct GNUNET_PeerIdentity *const
77 *outgoing_path, 76 *outgoing_path,
78 const struct GNUNET_MessageHeader *reply) 77 const struct GNUNET_MessageHeader *reply)
@@ -127,12 +126,9 @@ GNUNET_DHT_find_peer_start (struct GNUNET_DHT_Handle *handle,
127 htons (sizeof (struct GNUNET_DHT_FindPeerMessage)); 126 htons (sizeof (struct GNUNET_DHT_FindPeerMessage));
128 find_peer_msg.header.type = htons (GNUNET_MESSAGE_TYPE_DHT_FIND_PEER); 127 find_peer_msg.header.type = htons (GNUNET_MESSAGE_TYPE_DHT_FIND_PEER);
129 find_peer_handle->route_handle = 128 find_peer_handle->route_handle =
130 GNUNET_DHT_route_start (handle, key, 129 GNUNET_DHT_route_start (handle, key, 0, options, &find_peer_msg.header,
131 0, options, 130 timeout, &find_peer_reply_iterator,
132 &find_peer_msg.header, 131 find_peer_handle, NULL, NULL);
133 timeout,
134 &find_peer_reply_iterator, find_peer_handle,
135 NULL, NULL);
136 GNUNET_break (find_peer_handle->route_handle != NULL); 132 GNUNET_break (find_peer_handle->route_handle != NULL);
137 return find_peer_handle; 133 return find_peer_handle;
138} 134}