From 9390b001662c9a37732cd2bc650c0fa3a58ba0a1 Mon Sep 17 00:00:00 2001 From: valenok Date: Sun, 26 Sep 2010 22:27:41 +0100 Subject: [PATCH] squash warning under win32 --- mongoose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 8b6fb64a..b34818f1 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2832,7 +2832,7 @@ static void prepare_cgi_environment(struct mg_connection *conn, } static void handle_cgi_request(struct mg_connection *conn, const char *prog) { - int headers_len, data_len, i, exit_status, fd_stdin[2], fd_stdout[2]; + int headers_len, data_len, i, fd_stdin[2], fd_stdout[2]; const char *status; char buf[BUFSIZ], *pbuf, dir[PATH_MAX], *p; struct mg_request_info ri; @@ -2926,7 +2926,7 @@ done: if (pid != (pid_t) -1) { kill(pid, SIGKILL); #if !defined(_WIN32) - do {} while (waitpid(-1, &exit_status, WNOHANG) > 0); + do {} while (waitpid(-1, &i, WNOHANG) > 0); #endif } if (fd_stdin[0] != -1) {