diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-08-20 16:19:05 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-08-20 16:19:05 +0000 |
commit | 91ea3c56fe0dd7adef901983a6cebbbe5d90e526 (patch) | |
tree | 03848c9abd0510456e748c92bcfb44574621e0c4 /src/dht | |
parent | 004afd8bc5dbd6ff57c94f08b73213ec65e719fd (diff) | |
download | gnunet-91ea3c56fe0dd7adef901983a6cebbbe5d90e526.tar.gz gnunet-91ea3c56fe0dd7adef901983a6cebbbe5d90e526.zip |
api change to go along with service change
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/dht_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index aaa5acb5e..cb2adf978 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -1236,7 +1236,7 @@ GNUNET_DHT_find_peer_start (struct GNUNET_DHT_Handle *handle, | |||
1236 | void *cont_cls) | 1236 | void *cont_cls) |
1237 | { | 1237 | { |
1238 | struct GNUNET_DHT_FindPeerHandle *find_peer_handle; | 1238 | struct GNUNET_DHT_FindPeerHandle *find_peer_handle; |
1239 | struct GNUNET_MessageHeader find_peer_msg; | 1239 | struct GNUNET_DHT_FindPeerMessage find_peer_msg; |
1240 | 1240 | ||
1241 | if ((handle->current != NULL) && (handle->retransmit_stage != DHT_RETRANSMITTING)) /* Can't send right now, we have a pending message... */ | 1241 | if ((handle->current != NULL) && (handle->retransmit_stage != DHT_RETRANSMITTING)) /* Can't send right now, we have a pending message... */ |
1242 | return NULL; | 1242 | return NULL; |
@@ -1252,10 +1252,10 @@ GNUNET_DHT_find_peer_start (struct GNUNET_DHT_Handle *handle, | |||
1252 | "FIND PEER", GNUNET_h2s (key)); | 1252 | "FIND PEER", GNUNET_h2s (key)); |
1253 | #endif | 1253 | #endif |
1254 | 1254 | ||
1255 | find_peer_msg.size = htons(sizeof(struct GNUNET_MessageHeader)); | 1255 | find_peer_msg.header.size = htons(sizeof(struct GNUNET_DHT_FindPeerMessage)); |
1256 | find_peer_msg.type = htons(GNUNET_MESSAGE_TYPE_DHT_FIND_PEER); | 1256 | find_peer_msg.header.type = htons(GNUNET_MESSAGE_TYPE_DHT_FIND_PEER); |
1257 | find_peer_handle->route_handle = | 1257 | find_peer_handle->route_handle = |
1258 | GNUNET_DHT_route_start (handle, key, 0, options, &find_peer_msg, | 1258 | GNUNET_DHT_route_start (handle, key, 0, options, &find_peer_msg.header, |
1259 | timeout, &find_peer_reply_iterator, | 1259 | timeout, &find_peer_reply_iterator, |
1260 | find_peer_handle, cont, cont_cls); | 1260 | find_peer_handle, cont, cont_cls); |
1261 | return find_peer_handle; | 1261 | return find_peer_handle; |