[tor-commits] [tor/master] Fix a macro in address.c so coccinelle can understand it

teor at torproject.org teor at torproject.org
Thu Oct 24 00:01:21 UTC 2019


commit 9f50a92a7e858591f65bb9c6f0a2b164032bccc6
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 9 12:50:08 2019 -0400

    Fix a macro in address.c so coccinelle can understand it
---
 src/lib/net/address.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/net/address.c b/src/lib/net/address.c
index 0a2c84caf..dd6a83974 100644
--- a/src/lib/net/address.c
+++ b/src/lib/net/address.c
@@ -1392,7 +1392,7 @@ get_interface_addresses_win32(int severity, sa_family_t family)
 
 /* This is defined on Mac OS X */
 #ifndef _SIZEOF_ADDR_IFREQ
-#define _SIZEOF_ADDR_IFREQ sizeof
+#define _SIZEOF_ADDR_IFREQ(x) sizeof(x)
 #endif
 
 /* Free ifc->ifc_buf safely. */





More information about the tor-commits mailing list