mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Added type cast to ngx_proxy_protocol_parse_uint16().
The cast is added to make ngx_proxy_protocol_parse_uint16() similar to ngx_proxy_protocol_parse_uint32().
This commit is contained in:
parent
50e3ff8a00
commit
f27af85016
@ -13,7 +13,9 @@
|
|||||||
#define NGX_PROXY_PROTOCOL_AF_INET6 2
|
#define NGX_PROXY_PROTOCOL_AF_INET6 2
|
||||||
|
|
||||||
|
|
||||||
#define ngx_proxy_protocol_parse_uint16(p) ((p)[0] << 8 | (p)[1])
|
#define ngx_proxy_protocol_parse_uint16(p) \
|
||||||
|
( ((uint16_t) (p)[0] << 8) \
|
||||||
|
+ ( (p)[1]) )
|
||||||
|
|
||||||
#define ngx_proxy_protocol_parse_uint32(p) \
|
#define ngx_proxy_protocol_parse_uint32(p) \
|
||||||
( ((uint32_t) (p)[0] << 24) \
|
( ((uint32_t) (p)[0] << 24) \
|
||||||
|
Loading…
Reference in New Issue
Block a user