[Sumover-dev] [svn commit] r4016 - common/trunk/src

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Wed May 9 18:59:28 BST 2007


Author: piers
Date: Wed May  9 18:59:41 2007
New Revision: 4016

Modified:
   common/trunk/src/net_udp.c

Log:
Added errno=0 and removed old IPV6 windows stuff

Modified: common/trunk/src/net_udp.c
==============================================================================
--- common/trunk/src/net_udp.c	(original)
+++ common/trunk/src/net_udp.c	Wed May  9 18:59:41 2007
@@ -59,10 +59,6 @@
 const struct	in6_addr	in6addr_any = {IN6ADDR_ANY_INIT};
 #endif
 
-#ifdef WINXP_IPV6
-const struct	in6_addr	in6addr_any = {IN6ADDR_ANY_INIT};
-#endif
-
 /* This is pretty nasty but it's the simplest way to get round */
 /* the Detexis bug that means their MUSICA IPv6 stack uses     */
 /* IPPROTO_IP instead of IPPROTO_IPV6 in setsockopt calls      */
@@ -1004,6 +1000,8 @@
 	assert(buffer != NULL);
 	assert(buflen > 0);
 
+	errno = 0;
+
 	len = recvfrom(s->fd, buffer, buflen, 0, 0, 0);
 	if (len > 0) {
 		return len;



More information about the Sumover-dev mailing list