libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 45ff2901df818c6296c6a7ba293091bb483fb23a
parent 8fc50948a738de869f149dfd540e97b3ba216dbc
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Wed, 24 Dec 2025 20:26:01 +0100

libtest.c: fixed one compiler warning

Diffstat:
Msrc/tests/client_server/libtest.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/tests/client_server/libtest.c b/src/tests/client_server/libtest.c @@ -468,7 +468,6 @@ server_phase_logic (void *cls) { struct ServerContext *ctx = cls; const struct MHDT_Phase *phases = ctx->phase; - unsigned int i; unsigned int j; for (j = 0; j < ctx->rounds; j++) @@ -478,7 +477,7 @@ server_phase_logic (void *cls) j + 1, ctx->rounds); ctx->phase = &phases[0]; - for (i = 0; NULL != ctx->phase->label; i++) + while (NULL != ctx->phase->label) { semaphore_down (&ctx->client_sem); ctx->phase++;