more braces

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5226 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-11-22 09:45:42 +00:00
parent 356a835d28
commit 66b3034e8e
5 changed files with 13 additions and 7 deletions

View File

@@ -64,13 +64,14 @@ net_read (int fd, void *buf, size_t nbytes)
#else
count = read (fd, cbuf, rem);
#endif
if (count < 0)
if (count < 0) {
if (errno == EINTR)
continue;
else
return count;
else if (count == 0)
} else if (count == 0) {
return count;
}
cbuf += count;
rem -= count;
}