mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
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.
This commit is contained in:
parent
7c6971cff3
commit
4d1b08bb1c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user