mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 06:35:28 +01:00
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.
This commit is contained in:
parent
9e56ac27da
commit
680646e0de
2 changed files with 2 additions and 1 deletions
|
@ -4,4 +4,5 @@
|
||||||
o Minor bugfixes:
|
o Minor bugfixes:
|
||||||
- Add some forgotten return value checks during unit tests. Found
|
- Add some forgotten return value checks during unit tests. Found
|
||||||
by coverity.
|
by coverity.
|
||||||
|
- Don't use 1-bit wide signed bit fields. Found by coverity.
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ typedef struct policy_summary_item_t {
|
||||||
uint16_t prt_max; /**< Highest port number to accept/reject. */
|
uint16_t prt_max; /**< Highest port number to accept/reject. */
|
||||||
uint64_t reject_count; /**< Number of IP-Addresses that are rejected to
|
uint64_t reject_count; /**< Number of IP-Addresses that are rejected to
|
||||||
this port range. */
|
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;
|
} policy_summary_item_t;
|
||||||
|
|
||||||
/** Private networks. This list is used in two places, once to expand the
|
/** Private networks. This list is used in two places, once to expand the
|
||||||
|
|
Loading…
Add table
Reference in a new issue