[tor-commits] [tor/master] Avoid double-typedef of transport_t.
nickm at torproject.org
nickm at torproject.org
Thu Jul 19 13:06:26 UTC 2012
commit 24451e6f7d6813642cc3b092bf085fdbb4a9aefc
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Jul 19 09:04:24 2012 -0400
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.
---
src/or/circuitbuild.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h
index a7becce..d4a78b9 100644
--- a/src/or/circuitbuild.h
+++ b/src/or/circuitbuild.h
@@ -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
More information about the tor-commits
mailing list