mirror of
https://github.com/nginx/nginx.git
synced 2026-09-03 20:12:29 +00:00
Fixed build on MSVC.
This commit is contained in:
parent
4c03c80e12
commit
9810fd06cb
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue