From aa8359f9e8e5ddf828b11e81d36160c80a4e36fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 Jan 2011 19:30:05 +0000 Subject: [PATCH] redundant --- src/util/bandwidth.c | 1 - src/util/scheduler.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c index 5da3e9739..6f25abfd5 100644 --- a/src/util/bandwidth.c +++ b/src/util/bandwidth.c @@ -185,7 +185,6 @@ update_tracker (struct GNUNET_BANDWIDTH_Tracker *av) max_carry = av->available_bytes_per_s__ * av->max_carry_s__; if (max_carry < GNUNET_SERVER_MAX_MESSAGE_SIZE) max_carry = GNUNET_SERVER_MAX_MESSAGE_SIZE; - av->consumption_since_last_update__ = -left_bytes; if (max_carry > left_bytes) av->consumption_since_last_update__ = -left_bytes; else diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 2d7907395..b15b578e2 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -740,10 +740,9 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) task_cls, GNUNET_SCHEDULER_REASON_STARTUP); #if ENABLE_WINDOWS_WORKAROUNDS - GNUNET_SCHEDULER_add_continuation (GNUNET_OS_install_parent_control_handler, + GNUNET_SCHEDULER_add_continuation (&GNUNET_OS_install_parent_control_handler, NULL, GNUNET_SCHEDULER_REASON_STARTUP); #endif - last_tr = 0; busy_wait_warning = 0; while ((pending != NULL) || -- 2.25.1