diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-10 09:28:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-10 09:28:50 -0400 |
commit | db71d42868fd57904840d10e49ee28bbb3b25039 (patch) | |
tree | 9f7be21f8fff353e9fd1f88f4a1e87bb068eaebd /src/or/or.h | |
parent | 948158df33c4cbfa03f2aa4990097b4e9de664a1 (diff) | |
download | tor-db71d42868fd57904840d10e49ee28bbb3b25039.tar.gz tor-db71d42868fd57904840d10e49ee28bbb3b25039.zip |
Avoid double-typedef errors on freebsd.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/or.h b/src/or/or.h index 5a9ad59ee4..996a7700b5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -847,9 +847,9 @@ rend_data_v2_t *TO_REND_DATA_V2(const rend_data_t *d) } /* Stub because we can't include hs_ident.h. */ -typedef struct hs_ident_edge_conn_t hs_ident_edge_conn_t; -typedef struct hs_ident_dir_conn_t hs_ident_dir_conn_t; -typedef struct hs_ident_circuit_t hs_ident_circuit_t; +struct hs_ident_edge_conn_t; +struct hs_ident_dir_conn_t; +struct hs_ident_circuit_t; /** Time interval for tracking replays of DH public keys received in * INTRODUCE2 cells. Used only to avoid launching multiple @@ -1641,7 +1641,7 @@ typedef struct edge_connection_t { /* Hidden service connection identifier for edge connections. Used by the HS * client-side code to identify client SOCKS connections and by the * service-side code to match HS circuits with their streams. */ - hs_ident_edge_conn_t *hs_ident; + struct hs_ident_edge_conn_t *hs_ident; uint32_t address_ttl; /**< TTL for address-to-addr mapping on exit * connection. Exit connections only. */ @@ -1796,7 +1796,7 @@ typedef struct dir_connection_t { /* Hidden service connection identifier for dir connections: Used by HS client-side code to fetch HS descriptors, and by the service-side code to upload descriptors. */ - hs_ident_dir_conn_t *hs_ident; + struct hs_ident_dir_conn_t *hs_ident; /** If this is a one-hop connection, tracks the state of the directory guard * for this connection (if any). */ @@ -3205,7 +3205,7 @@ typedef struct origin_circuit_t { /** Holds hidden service identifier on either client or service side. This * is for both introduction and rendezvous circuit. */ - hs_ident_circuit_t *hs_ident; + struct hs_ident_circuit_t *hs_ident; /** Holds the data that the entry guard system uses to track the * status of the guard this circuit is using, and thereby to determine |