diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-07 11:58:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-07 11:58:04 +0000 |
commit | 9dac7b6b7b035d55bdb9731795712ead92e11f76 (patch) | |
tree | 8bed4ad4617f95bcdaac75dc43c2b2dd461b3e76 /src/core | |
parent | 2a534fc5efadca1b65648efb903c3b4c17ac33ad (diff) | |
download | gnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.tar.gz gnunet-9dac7b6b7b035d55bdb9731795712ead92e11f76.zip |
fixes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 2 | ||||
-rw-r--r-- | src/core/gnunet-service-core.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index ac958449b..6aca88640 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -272,11 +272,9 @@ static void | |||
272 | timeout_request (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 272 | timeout_request (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
273 | { | 273 | { |
274 | struct GNUNET_CORE_TransmitHandle *th = cls; | 274 | struct GNUNET_CORE_TransmitHandle *th = cls; |
275 | struct GNUNET_CORE_Handle *h; | ||
276 | 275 | ||
277 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 276 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
278 | "Transmission request timed out.\n"); | 277 | "Transmission request timed out.\n"); |
279 | h = th->ch; | ||
280 | th->timeout_task = GNUNET_SCHEDULER_NO_TASK; | 278 | th->timeout_task = GNUNET_SCHEDULER_NO_TASK; |
281 | GNUNET_assert (0 == th->get_message (th->get_message_cls, 0, NULL)); | 279 | GNUNET_assert (0 == th->get_message (th->get_message_cls, 0, NULL)); |
282 | GNUNET_CORE_notify_transmit_ready_cancel (th); | 280 | GNUNET_CORE_notify_transmit_ready_cancel (th); |
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 4012ac3a8..d950237cd 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -2918,7 +2918,6 @@ neighbour_quota_update (void *cls, | |||
2918 | account for possibility of new neighbours joining any time | 2918 | account for possibility of new neighbours joining any time |
2919 | AND to convert to double... */ | 2919 | AND to convert to double... */ |
2920 | pref_rel = n->current_preference / (1.0 + preference_sum); | 2920 | pref_rel = n->current_preference / (1.0 + preference_sum); |
2921 | share = 0; | ||
2922 | distributable = 0; | 2921 | distributable = 0; |
2923 | if (bandwidth_target_out > neighbour_count * MIN_BPM_PER_PEER) | 2922 | if (bandwidth_target_out > neighbour_count * MIN_BPM_PER_PEER) |
2924 | distributable = bandwidth_target_out - neighbour_count * MIN_BPM_PER_PEER; | 2923 | distributable = bandwidth_target_out - neighbour_count * MIN_BPM_PER_PEER; |