From 6b50039863c93773fa7e21ca1e21ec329cf18a10 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 27 May 2022 22:24:45 +0100 Subject: [PATCH] More SNtp debug 9 --- mongoose.c | 2 +- src/sock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 967e8254..2b5e21af 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4394,7 +4394,7 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { eSELECT_READ | eSELECT_EXCEPT | eSELECT_WRITE); } #elif MG_ENABLE_POLL - size_t n = 0; + nfds_t n = 0; for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) n++; struct pollfd fds[n == 0 ? 1 : n]; // Avoid zero-length VLA diff --git a/src/sock.c b/src/sock.c index f3ba793d..0034e293 100644 --- a/src/sock.c +++ b/src/sock.c @@ -476,7 +476,7 @@ static void mg_iotest(struct mg_mgr *mgr, int ms) { eSELECT_READ | eSELECT_EXCEPT | eSELECT_WRITE); } #elif MG_ENABLE_POLL - size_t n = 0; + nfds_t n = 0; for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) n++; struct pollfd fds[n == 0 ? 1 : n]; // Avoid zero-length VLA