summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-06-08 21:27:32 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-06-08 21:30:41 +0200
commit680646e0de29454f92d57bc3a4895d75c95e158c (patch)
treef0e26df51154052814bdcafcaa37bc8df87a7592 /src/or
parent9e56ac27da80969fadaad7eaf64a8384e68a778e (diff)
downloadtor-680646e0de29454f92d57bc3a4895d75c95e158c.tar.gz
tor-680646e0de29454f92d57bc3a4895d75c95e158c.zip
Don't use signed 1-bit bitfields
This was harmless, we never compared it to anything but itself or 0. But Coverity complained, and it had a point.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index e48f42058f..c87036013d 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -45,7 +45,7 @@ typedef struct policy_summary_item_t {
uint16_t prt_max; /**< Highest port number to accept/reject. */
uint64_t reject_count; /**< Number of IP-Addresses that are rejected to
this port range. */
- int accepted:1; /** Has this port already been accepted */
+ unsigned int accepted:1; /** Has this port already been accepted */
} policy_summary_item_t;
/** Private networks. This list is used in two places, once to expand the