Mercurial > hg > nginx
comparison src/event/ngx_event_quic.h @ 8571:a0631204d88a quic
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".
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 05 Oct 2020 14:36:17 +0300 |
parents | 6dac06dfe779 |
children | 02ee77f8d53d |
comparison
equal
deleted
inserted
replaced
8570:6dac06dfe779 | 8571:a0631204d88a |
---|---|
128 /* #define NGX_QUIC_DEBUG_FRAMES_ALLOC */ /* log frames alloc/reuse/free */ | 128 /* #define NGX_QUIC_DEBUG_FRAMES_ALLOC */ /* log frames alloc/reuse/free */ |
129 /* #define NGX_QUIC_DEBUG_CRYPTO */ | 129 /* #define NGX_QUIC_DEBUG_CRYPTO */ |
130 | 130 |
131 #if (NGX_DEBUG) | 131 #if (NGX_DEBUG) |
132 | 132 |
133 #define ngx_quic_hexdump(log, fmt, data, len) \ | |
134 ngx_quic_hexdump_real(log, fmt, (u_char *) data, (size_t) len) | |
135 | |
133 static ngx_inline | 136 static ngx_inline |
134 void ngx_quic_hexdump(ngx_log_t *log, const char *label, u_char *data, | 137 void ngx_quic_hexdump_real(ngx_log_t *log, const char *label, u_char *data, |
135 size_t len) | 138 size_t len) |
136 { | 139 { |
137 ngx_int_t m; | 140 ngx_int_t m; |
138 u_char buf[2048]; | 141 u_char buf[2048]; |
139 | 142 |