mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Fixed build on MSVC.
This commit is contained in:
parent
4c03c80e12
commit
9810fd06cb
@ -581,7 +581,7 @@ ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text,
|
||||
return rc;
|
||||
}
|
||||
|
||||
ngx_inet_set_port(addr->sockaddr, port);
|
||||
ngx_inet_set_port(addr->sockaddr, (in_port_t) port);
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
@ -809,7 +809,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s,
|
||||
return;
|
||||
}
|
||||
|
||||
ngx_inet_set_port(peer->sockaddr, port);
|
||||
ngx_inet_set_port(peer->sockaddr, (in_port_t) port);
|
||||
|
||||
len = ctx->addr.len + 1 + ctx->port.len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user