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

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Fri Feb 9 17:23:12 GMT 2007


Author: piers
Date: Fri Feb  9 17:24:15 2007
New Revision: 3965

Modified:
   common/trunk/src/getaddrinfo.c

Log:
Added errno=0 before use of errno - which is normally required.

Modified: common/trunk/src/getaddrinfo.c
==============================================================================
--- common/trunk/src/getaddrinfo.c	(original)
+++ common/trunk/src/getaddrinfo.c	Fri Feb  9 17:24:15 2007
@@ -696,8 +696,9 @@
 
 	/*
 	 * filter out AFs that are not supported by the kernel
-	 * XXX errno?
+	 * XXX errno? Added =0 below.
 	 */
+	errno = 0;
 	s = socket(pai->ai_family, SOCK_DGRAM, 0);
 	if (s < 0) {
 		if (errno != EMFILE)



More information about the Sumover-dev mailing list