mirror of
https://github.com/nginx/nginx.git
synced 2025-06-23 14:30:40 +08:00
QUIC: fixed build with clang and NGX_QUIC_DEBUG_CRYPTO enabled.
The ngx_quic_hexdump() function is wrapped into macros to cast "data" argument to "* u_char".
This commit is contained in:
parent
b99a4a0b82
commit
4ed768d3d1
@ -130,8 +130,11 @@ void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,
|
|||||||
|
|
||||||
#if (NGX_DEBUG)
|
#if (NGX_DEBUG)
|
||||||
|
|
||||||
|
#define ngx_quic_hexdump(log, fmt, data, len) \
|
||||||
|
ngx_quic_hexdump_real(log, fmt, (u_char *) data, (size_t) len)
|
||||||
|
|
||||||
static ngx_inline
|
static ngx_inline
|
||||||
void ngx_quic_hexdump(ngx_log_t *log, const char *label, u_char *data,
|
void ngx_quic_hexdump_real(ngx_log_t *log, const char *label, u_char *data,
|
||||||
size_t len)
|
size_t len)
|
||||||
{
|
{
|
||||||
ngx_int_t m;
|
ngx_int_t m;
|
||||||
|
Loading…
Reference in New Issue
Block a user