summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-14 01:41:53 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-14 01:41:53 -0400
commitbd6bd1c9be24dac2350403beebae2dae55c639b6 (patch)
tree0cf6dc9c8699d25080cf0e9c218df6303d23528d
parentc9745822913e00a8664d68f62009fde231eff2aa (diff)
downloadtor-bd6bd1c9be24dac2350403beebae2dae55c639b6.tar.gz
tor-bd6bd1c9be24dac2350403beebae2dae55c639b6.zip
Fix signed/unsigned comparison warning
-rw-r--r--src/or/relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index f682d6a1c0..2fe6448c1b 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -2540,7 +2540,7 @@ append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
(uint32_t)(((double)orcirc->max_middle_cells) *
ORCIRC_MAX_MIDDLE_KILL_THRESH);
- if (queue->n + 1 >= hard_max_middle_cells) {
+ if ((unsigned)queue->n + 1 >= hard_max_middle_cells) {
/* Queueing this cell would put queue over the kill theshold */
log_warn(LD_CIRC,
"Got a cell exceeding the hard cap of %u in the "
@@ -2556,7 +2556,7 @@ append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
orcirc->p_chan->global_identifier));
circuit_mark_for_close(circ, END_CIRC_REASON_RESOURCELIMIT);
return;
- } else if (queue->n + 1 == orcirc->max_middle_cells) {
+ } else if ((unsigned)queue->n + 1 == orcirc->max_middle_cells) {
/* Only use ==, not >= for this test so we don't spam the log */
log_warn(LD_CIRC,
"While trying to queue a cell, reached the soft cap of %u "