]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Avoid double-typedef of transport_t.
authorNick Mathewson <nickm@torproject.org>
Thu, 19 Jul 2012 13:04:24 +0000 (09:04 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Jul 2012 13:06:11 +0000 (09:06 -0400)
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

index a7beccebb6aa8a75f7ef30b9dae1d15a1fce0300..d4a78b9e1e3eba13331575437228ee6b76e617a1 100644 (file)
@@ -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