From 89e2a15eb7818b2d4bd43f2bd40922f6dbda402d Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 29 Jun 2022 18:03:04 +0100 Subject: [PATCH] Fix build --- mongoose.c | 8 ++++++-- src/sock.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mongoose.c b/mongoose.c index e1af26ff..4a6fd5a6 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4397,7 +4397,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { SOCKET maxfd = 0; 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) { c->is_readable = c->is_writable = 0; if (skip_iotest(c)) continue; @@ -4414,7 +4416,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { #else MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO)); #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) { diff --git a/src/sock.c b/src/sock.c index 9b03c88a..3c814f63 100644 --- a/src/sock.c +++ b/src/sock.c @@ -544,7 +544,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { SOCKET maxfd = 0; 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) { c->is_readable = c->is_writable = 0; if (skip_iotest(c)) continue; @@ -561,7 +563,9 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { #else MG_ERROR(("select: %d %d", rc, MG_SOCK_ERRNO)); #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) {