[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix windows warning



Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv11191/src/common

Modified Files:
	util.c 
Log Message:
Fix windows warning

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -d -r1.212 -r1.213
--- util.c	3 Aug 2005 20:42:17 -0000	1.212
+++ util.c	4 Aug 2005 22:25:39 -0000	1.213
@@ -1359,7 +1359,7 @@
   }
 
   /* 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;