diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-06-24 11:28:15 -0700 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-06-24 11:28:15 -0700 |
commit | 58f801fadf56dcd72c922a6934b166b7651d14d1 (patch) | |
tree | 6aba890bdd004f17277b34624c6327459010cadf /src | |
parent | 694cd7ade985e402b6c62a2f8a970c83313ca267 (diff) | |
download | tor-58f801fadf56dcd72c922a6934b166b7651d14d1.tar tor-58f801fadf56dcd72c922a6934b166b7651d14d1.tar.gz |
Store cpath_build_state_t flags in one-bit bitfields, not ints
Diffstat (limited to 'src')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h index 7daf19526..31f9e5be4 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2192,15 +2192,15 @@ typedef struct { /** How to extend to the planned exit node. */ extend_info_t *chosen_exit; /** Whether every node in the circ must have adequate uptime. */ - int need_uptime; + unsigned int need_uptime : 1; /** Whether every node in the circ must have adequate capacity. */ - int need_capacity; + unsigned int need_capacity : 1; /** Whether the last hop was picked with exiting in mind. */ - int is_internal; + unsigned int is_internal : 1; /** Did we pick this as a one-hop tunnel (not safe for other conns)? * These are for encrypted connections that exit to this router, not * for arbitrary exits from the circuit. */ - int onehop_tunnel; + unsigned int onehop_tunnel : 1; /** The crypt_path_t to append after rendezvous: used for rendezvous. */ crypt_path_t *pending_final_cpath; /** How many times has building a circuit for this task failed? */ |