diff dbutil.c @ 1038:d3925ed45a85

Fix for old compilers, variable declarations at beginning of functions and /**/ comments
author Thorsten Horstmann <thorsten.horstmann@web.de>
date Tue, 24 Feb 2015 20:51:18 +0800
parents 4121ca987e6a
children 01eea88963f3
line wrap: on
line diff
--- a/dbutil.c	Tue Feb 24 20:45:07 2015 +0800
+++ b/dbutil.c	Tue Feb 24 20:51:18 2015 +0800
@@ -868,12 +868,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);