diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/dht/gnunet-service-dht_neighbours.c | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index fe9dd3e9c..c251dfa12 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -907,11 +907,8 @@ get_distance (const struct GNUNET_HashCode *target, | |||
907 | * use the highest 2^9 bits of the result to signify the | 907 | * use the highest 2^9 bits of the result to signify the |
908 | * number of (mis)matching LSB bits; if we have 0 matching | 908 | * number of (mis)matching LSB bits; if we have 0 matching |
909 | * and hence 512 mismatching LSB bits we return -1 (since | 909 | * and hence 512 mismatching LSB bits we return -1 (since |
910 | * 512 itself cannot be represented with 9 bits) */ | 910 | * 512 itself cannot be represented with 9 bits) *//* first, calculate the most significant 9 bits of our |
911 | 911 | * result, aka the number of LSBs */bucket = GNUNET_CRYPTO_hash_matching_bits (target, | |
912 | /* first, calculate the most significant 9 bits of our | ||
913 | * result, aka the number of LSBs */ | ||
914 | bucket = GNUNET_CRYPTO_hash_matching_bits (target, | ||
915 | have); | 912 | have); |
916 | /* bucket is now a value between 0 and 512 */ | 913 | /* bucket is now a value between 0 and 512 */ |
917 | if (bucket == 512) | 914 | if (bucket == 512) |