[tor-commits] [tor/master] Remove GetAdaptersAddresses_fn_t

nickm at torproject.org nickm at torproject.org
Thu Sep 6 13:24:51 UTC 2018


commit d0965561a53ffc3707f4466e4470dbb072a47f10
Author: teor <teor at torproject.org>
Date:   Thu Sep 6 12:54:03 2018 +1000

    Remove GetAdaptersAddresses_fn_t
    
    The code that used it was removed as part of the 26481 refactor.
    
    Closes ticket 27467.
---
 changes/ticket27467   | 3 +++
 src/lib/net/address.c | 5 -----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/changes/ticket27467 b/changes/ticket27467
new file mode 100644
index 000000000..6f0df024c
--- /dev/null
+++ b/changes/ticket27467
@@ -0,0 +1,3 @@
+  o Code simplification and refactoring:
+    - Remove GetAdaptersAddresses_fn_t. The code that used it was removed
+      as part of the 26481 refactor. Closes ticket 27467.
diff --git a/src/lib/net/address.c b/src/lib/net/address.c
index 619fa13e9..d49ffe706 100644
--- a/src/lib/net/address.c
+++ b/src/lib/net/address.c
@@ -1205,11 +1205,6 @@ tor_addr_parse(tor_addr_t *addr, const char *src)
   return result;
 }
 
-#ifdef _WIN32
-typedef ULONG (WINAPI *GetAdaptersAddresses_fn_t)(
-              ULONG, ULONG, PVOID, PIP_ADAPTER_ADDRESSES, PULONG);
-#endif
-
 #ifdef HAVE_IFADDRS_TO_SMARTLIST
 /*
  * Convert a linked list consisting of <b>ifaddrs</b> structures





More information about the tor-commits mailing list