From 546fba7b04c82c0269b14bbde51e96139470dfe3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 4 Aug 2005 22:25:39 +0000 Subject: Fix windows warning svn:r4697 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 390889d4c2..e762b1853e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1359,7 +1359,7 @@ get_interface_address(uint32_t *addr) } /* XXXX Can this be right on IPv6 clients? */ - if (getsockname(sock, &my_addr, &my_addr_len)) { + if (getsockname(sock, (struct sockaddr*)&my_addr, &my_addr_len)) { int e = tor_socket_errno(sock); log_fn(LOG_WARN, "getsockname() failed: %s", tor_socket_strerror(e)); goto err; -- cgit v1.2.3-54-g00ecf