mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Avoid double-typedef of transport_t.
You can say "struct foo_t" as much as you want, but you'd better not have "typedef struct foo_t foo_t" more than once. Fix for bug 6416. Bug not in any released version of Tor.
This commit is contained in:
@@ -137,9 +137,9 @@ int circuit_build_times_get_bw_scale(networkstatus_t *ns);
|
||||
/* DOCDOC find_transport_name_by_bridge_addrport */
|
||||
const char *find_transport_name_by_bridge_addrport(const tor_addr_t *addr,
|
||||
uint16_t port);
|
||||
typedef struct transport_t transport_t;
|
||||
struct transport_t;
|
||||
int find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port,
|
||||
const transport_t **transport);
|
||||
const struct transport_t **transport);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user