Welcome! Log In Create A New Profile

Advanced

[nginx] Win32: fixed build with MinGW and MinGW-w64 gcc.

Maxim Dounin
October 19, 2015 04:54PM
details: http://hg.nginx.org/nginx/rev/954b67727af3
branches:
changeset: 6265:954b67727af3
user: Kouhei Sutou <kou@cozmixng.org>
date: Sat Oct 17 21:41:02 2015 +0900
description:
Win32: fixed build with MinGW and MinGW-w64 gcc.

This change fixes the "comparison between signed and unsigned integer
expressions" warning, introduced in 5e6142609e48 (1.9.4).

diffstat:

src/core/ngx_connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -1175,7 +1175,7 @@ ngx_close_idle_connections(ngx_cycle_t *

/* THREAD: lock */

- if (c[i].fd != -1 && c[i].idle) {
+ if (c[i].fd != (ngx_socket_t) -1 && c[i].idle) {
c[i].close = 1;
c[i].read->handler(c[i].read);
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Win32: fixed build with MinGW and MinGW-w64 gcc.

Maxim Dounin 679 October 19, 2015 04:54PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 102
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready