summaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-02-06 16:26:28 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-02-06 16:26:28 +0000
commit16cf1679e78c690869be3d26448a965e8d1330b0 (patch)
treee8ecb267e48a10d0f9d77b28ae7b6682474623c8 /src/or/scheduler.c
parent4785cd361736377980bcb0d177ef609006c10e55 (diff)
downloadtor-16cf1679e78c690869be3d26448a965e8d1330b0.tar.gz
tor-16cf1679e78c690869be3d26448a965e8d1330b0.zip
Fix scheduler compilation on targets where char is unsigned.
Per discussion with nickm, the `dir` argument should be a int rather than a signed char. Fixes bug #14764.
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index f3fbc4ad4e..931bb6b744 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -613,7 +613,7 @@ scheduler_touch_channel(channel_t *chan)
*/
void
-scheduler_adjust_queue_size(channel_t *chan, char dir, uint64_t adj)
+scheduler_adjust_queue_size(channel_t *chan, int dir, uint64_t adj)
{
time_t now = approx_time();