diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-13 09:56:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-13 09:56:39 +0000 |
commit | bf51e53605502d2fb868655451b5d169994a62d5 (patch) | |
tree | c1168346ba52583d681513ae4c044c582a1530fb /src/dht/gnunet-service-dht.c | |
parent | 683052518084fec9c5117f0efa47693c404372d1 (diff) | |
download | gnunet-bf51e53605502d2fb868655451b5d169994a62d5.tar.gz gnunet-bf51e53605502d2fb868655451b5d169994a62d5.zip |
simplify
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 42e0c20b8..055fbe1fd 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -3083,10 +3083,9 @@ get_forward_count (unsigned int hop_count, size_t target_replication) | |||
3083 | { | 3083 | { |
3084 | if (hop_count == 0) | 3084 | if (hop_count == 0) |
3085 | return kademlia_replication; | 3085 | return kademlia_replication; |
3086 | else if (hop_count < max_hops) | 3086 | if (hop_count < max_hops) |
3087 | return 1; | 3087 | return 1; |
3088 | else | 3088 | return 0; |
3089 | return 0; | ||
3090 | } | 3089 | } |
3091 | 3090 | ||
3092 | /* FIXME: the smaller we think the network is the more lenient we should be for | 3091 | /* FIXME: the smaller we think the network is the more lenient we should be for |