From b65a22107e0da3b698383720437feb0b7eeaa60e Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 4 Jun 2017 13:12:56 +0300 Subject: [PATCH] internal_add_connection(): cosmetics --- src/microhttpd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 754d795d..3c275191 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -2364,7 +2364,7 @@ internal_add_connection (struct MHD_Daemon *daemon, /* have a pool, try to find a pool with capacity; we use the socket as the initial offset into the pool for load balancing */ - for (i=0;iworker_pool_size;i++) + for (i = 0; i < daemon->worker_pool_size; ++i) { worker = &daemon->worker_pool[(i + client_socket) % daemon->worker_pool_size]; if (worker->connections < worker->connection_limit)