Fix some MSVC++ warnings

This commit is contained in:
Wilson Snyder
2010-01-24 20:53:24 -05:00
parent cbc90e7ffb
commit f71749c3c4
13 changed files with 28 additions and 18 deletions
+10 -2
View File
@@ -343,7 +343,11 @@ private:
int got = read (fd, buf, todo);
//UINFO(9,"RD GOT g "<< got<<" e "<<errno<<" "<<strerror(errno)<<endl); usleep(50*1000);
if (got>0) out.append(buf, got);
else if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
else if (errno == EINTR || errno == EAGAIN
#ifdef EWOULDBLOCK
|| errno == EWOULDBLOCK
#endif
) {
checkFilter(false); usleep(1000); continue;
} else { m_readEof = true; break; }
}
@@ -372,7 +376,11 @@ private:
int got = write (m_writeFd, (out.c_str())+offset, out.length()-offset);
//UINFO(9,"WR GOT g "<< got<<" e "<<errno<<" "<<strerror(errno)<<endl); usleep(50*1000);
if (got>0) offset += got;
else if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
else if (errno == EINTR || errno == EAGAIN
#ifdef EWOULDBLOCK
|| errno == EWOULDBLOCK
#endif
) {
checkFilter(false); usleep(1000); continue;
}
else break;