diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-08-04 22:25:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-08-04 22:25:39 +0000 |
commit | 546fba7b04c82c0269b14bbde51e96139470dfe3 (patch) | |
tree | 440556d672e42403c960f09251abdba269ea29d0 | |
parent | 0dd1a7f121bebcd6292f4cbd3bc91155e6bd2713 (diff) | |
download | tor-546fba7b04c82c0269b14bbde51e96139470dfe3.tar.gz tor-546fba7b04c82c0269b14bbde51e96139470dfe3.zip |
Fix windows warning
svn:r4697
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |