changeset 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 3bde57a0e6ce
files src/event/ngx_event_quic.h
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -130,8 +130,11 @@ void ngx_quic_finalize_connection(ngx_co
 
 #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;