diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 22:01:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 22:01:13 +0000 |
commit | 7abf844d0d4de319f2b093d50b0334af9a9d3bda (patch) | |
tree | 212272d6aaf9e5530ce44418149b9158f1eb0f7c /src/fs/gnunet-service-fs_push.c | |
parent | 8556fe9ebd0c4f8e63577a43155ffede20607f41 (diff) | |
download | gnunet-7abf844d0d4de319f2b093d50b0334af9a9d3bda.tar.gz gnunet-7abf844d0d4de319f2b093d50b0334af9a9d3bda.zip |
-fixing build issues in fs/set related to #3047
Diffstat (limited to 'src/fs/gnunet-service-fs_push.c')
-rw-r--r-- | src/fs/gnunet-service-fs_push.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index 70c13f49f..c80dc8b08 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c | |||
@@ -329,6 +329,7 @@ score_content (struct MigrationReadyPeer *peer, | |||
329 | unsigned int i; | 329 | unsigned int i; |
330 | struct GSF_PeerPerformanceData *ppd; | 330 | struct GSF_PeerPerformanceData *ppd; |
331 | struct GNUNET_PeerIdentity id; | 331 | struct GNUNET_PeerIdentity id; |
332 | struct GNUNET_HashCode hc; | ||
332 | uint32_t dist; | 333 | uint32_t dist; |
333 | 334 | ||
334 | ppd = GSF_get_peer_performance_data_ (peer->peer); | 335 | ppd = GSF_get_peer_performance_data_ (peer->peer); |
@@ -337,7 +338,8 @@ score_content (struct MigrationReadyPeer *peer, | |||
337 | return -1; | 338 | return -1; |
338 | GNUNET_assert (0 != ppd->pid); | 339 | GNUNET_assert (0 != ppd->pid); |
339 | GNUNET_PEER_resolve (ppd->pid, &id); | 340 | GNUNET_PEER_resolve (ppd->pid, &id); |
340 | dist = GNUNET_CRYPTO_hash_distance_u32 (&block->query, &id.hashPubKey); | 341 | GNUNET_CRYPTO_hash (&id, sizeof (struct GNUNET_PeerIdentity), &hc); |
342 | dist = GNUNET_CRYPTO_hash_distance_u32 (&block->query, &hc); | ||
341 | /* closer distance, higher score: */ | 343 | /* closer distance, higher score: */ |
342 | return UINT32_MAX - dist; | 344 | return UINT32_MAX - dist; |
343 | } | 345 | } |