diff dbutil.c @ 1049:01eea88963f3 fastopen

merge from default
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Feb 2015 09:06:40 +0800
parents 0da8ba489c23 d3925ed45a85
children 36557295418e
line wrap: on
line diff
--- a/dbutil.c	Fri Feb 27 00:02:48 2015 +0800
+++ b/dbutil.c	Sat Feb 28 09:06:40 2015 +0800
@@ -504,12 +504,12 @@
 
 /* make sure that the socket closes */
 void m_close(int fd) {
+	int val;
 
 	if (fd == -1) {
 		return;
 	}
 
-	int val;
 	do {
 		val = close(fd);
 	} while (val < 0 && errno == EINTR);