mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
Fix build
This commit is contained in:
1 parent
b1896d9944
commit
89e2a15eb7
2 files changed
+12
-4
No files matched your search
+6
-2
@@ -4397,7 +4397,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
|
|||||||
SOCKET maxfd = 0;
|
SOCKET maxfd = 0;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
FD_ZERO(&rset), FD_ZERO(&wset), FD_ZERO(&eset);
|
FD_ZERO(&rset);
|
||||||
|
FD_ZERO(&wset);
|
||||||
|
FD_ZERO(&eset);
|
||||||
for (c = mgr->conns; c != NULL; c = c->next) {
|
for (c = mgr->conns; c != NULL; c = c->next) {
|
||||||
c->is_readable = c->is_writable = 0;
|
c->is_readable = c->is_writable = 0;
|
||||||
if (skip_iotest(c)) continue;
|
if (skip_iotest(c)) continue;
|
||||||
@@ -4414,7 +4416,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
|
|||||||
#else
|
#else
|
||||||
MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO));
|
MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO));
|
||||||
#endif
|
#endif
|
||||||
FD_ZERO(&rset), FD_ZERO(&wset), FD_ZERO(&eset);
|
FD_ZERO(&rset);
|
||||||
|
FD_ZERO(&wset);
|
||||||
|
FD_ZERO(&eset);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = mgr->conns; c != NULL; c = c->next) {
|
for (c = mgr->conns; c != NULL; c = c->next) {
|
||||||
|
|||||||
+6
-2
@@ -544,7 +544,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
|
|||||||
SOCKET maxfd = 0;
|
SOCKET maxfd = 0;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
FD_ZERO(&rset), FD_ZERO(&wset), FD_ZERO(&eset);
|
FD_ZERO(&rset);
|
||||||
|
FD_ZERO(&wset);
|
||||||
|
FD_ZERO(&eset);
|
||||||
for (c = mgr->conns; c != NULL; c = c->next) {
|
for (c = mgr->conns; c != NULL; c = c->next) {
|
||||||
c->is_readable = c->is_writable = 0;
|
c->is_readable = c->is_writable = 0;
|
||||||
if (skip_iotest(c)) continue;
|
if (skip_iotest(c)) continue;
|
||||||
@@ -561,7 +563,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) {
|
|||||||
#else
|
#else
|
||||||
MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO));
|
MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO));
|
||||||
#endif
|
#endif
|
||||||
FD_ZERO(&rset), FD_ZERO(&wset), FD_ZERO(&eset);
|
FD_ZERO(&rset);
|
||||||
|
FD_ZERO(&wset);
|
||||||
|
FD_ZERO(&eset);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = mgr->conns; c != NULL; c = c->next) {
|
for (c = mgr->conns; c != NULL; c = c->next) {
|
||||||
|
|||||||
Reference in new issue
Block a user