[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17065 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17065 - gnunet/src/dht |
Date: |
Tue, 27 Sep 2011 16:46:14 +0200 |
Author: grothoff
Date: 2011-09-27 16:46:14 +0200 (Tue, 27 Sep 2011)
New Revision: 17065
Modified:
gnunet/src/dht/dht_api.c
gnunet/src/dht/gnunet-service-dht_neighbours.c
Log:
fix
Modified: gnunet/src/dht/dht_api.c
===================================================================
--- gnunet/src/dht/dht_api.c 2011-09-27 14:42:43 UTC (rev 17064)
+++ gnunet/src/dht/dht_api.c 2011-09-27 14:46:14 UTC (rev 17065)
@@ -425,15 +425,15 @@
struct GNUNET_DHT_RouteHandle *rh = value;
const struct GNUNET_MessageHeader *enc_msg;
size_t enc_size;
- uint64_t uid;
const struct GNUNET_PeerIdentity **outgoing_path;
const struct GNUNET_PeerIdentity *pos;
uint32_t outgoing_path_length;
unsigned int i;
char *path_offset;
+#if HAVE_UID_FOR_TESTING
+ uint64_t uid;
uid = GNUNET_ntohll (dht_msg->unique_id);
-#if HAVE_UID_FOR_TESTING
if (uid != rh->uid)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
Modified: gnunet/src/dht/gnunet-service-dht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_neighbours.c 2011-09-27 14:42:43 UTC
(rev 17064)
+++ gnunet/src/dht/gnunet-service-dht_neighbours.c 2011-09-27 14:46:14 UTC
(rev 17065)
@@ -923,13 +923,11 @@
int bucket_num;
int count;
struct PeerInfo *pos;
- unsigned int my_distance;
if (0 == memcmp (&my_identity.hashPubKey, key, sizeof (GNUNET_HashCode)))
return GNUNET_YES;
bucket_num = find_bucket (key);
bits = GNUNET_CRYPTO_hash_matching_bits (&my_identity.hashPubKey, key);
- my_distance = get_distance (&my_identity.hashPubKey, key);
pos = k_buckets[bucket_num].head;
count = 0;
while ((pos != NULL) && (count < bucket_size))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17065 - gnunet/src/dht,
gnunet <=