diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-08-05 11:40:33 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-08-05 11:40:33 +0400 |
commit | 4d1b08bb1cb1edaa413d0f652ba68a7fba292419 (patch) | |
tree | 39d6673fe1bb9bb8f6c9ed8b2823729b2ef81bc0 | |
parent | 7c6971cff3de85e50c9fcda45eaa50d788dc86e5 (diff) | |
download | nginx-4d1b08bb1cb1edaa413d0f652ba68a7fba292419.tar.gz nginx-4d1b08bb1cb1edaa413d0f652ba68a7fba292419.zip |
Fixed build with signed socklen_t and unix sockets.
This seems to be the case at least under Cygwin, where build was broken
by 05ba5bce31e0 (1.5.3).
Reported by Kevin Worthington,
http://mailman.nginx.org/pipermail/nginx/2013-August/040028.html.
-rw-r--r-- | src/core/ngx_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 2b5c94c00..bb03720f7 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -233,7 +233,7 @@ ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len, /* on Linux sockaddr might not include sun_path at all */ - if (socklen <= offsetof(struct sockaddr_un, sun_path)) { + if (socklen <= (socklen_t) offsetof(struct sockaddr_un, sun_path)) { p = ngx_snprintf(text, len, "unix:%Z"); } else { |