From: Vladimir Homutov Date: Mon, 5 Oct 2020 11:36:17 +0000 (+0300) Subject: QUIC: fixed build with clang and NGX_QUIC_DEBUG_CRYPTO enabled. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=4ed768d3d12fd875af3801a0958aed514bb7b19d;p=nginx.git 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". --- diff --git a/src/event/ngx_event_quic.h b/src/event/ngx_event_quic.h index ece86bda7..7ff12f6d5 100644 --- a/src/event/ngx_event_quic.h +++ b/src/event/ngx_event_quic.h @@ -130,8 +130,11 @@ void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err, #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 -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) { ngx_int_t m;