mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
More SNtp debug 9
This commit is contained in:
parent
34c5f63c00
commit
6b50039863
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user