summaryrefslogtreecommitdiff
path: root/dbutil.c
diff options
context:
space:
mode:
authorThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:51:18 +0800
committerThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:51:18 +0800
commit18194ed2d1a30eae89fa071bc4b78a5d257eae2d (patch)
treec35c89418adba4bdcf080c5aef782794147dea79 /dbutil.c
parent1b125465182b5cdb9f80e4a934c936168ab95b2f (diff)
downloaddropbear-18194ed2d1a30eae89fa071bc4b78a5d257eae2d.tar.gz
Fix for old compilers, variable declarations at beginning of functions
and /**/ comments
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index ec108bf..eb781c3 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -868,12 +868,12 @@ out:
/* 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);