]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed build with clang and NGX_QUIC_DEBUG_CRYPTO enabled.
authorVladimir Homutov <vl@nginx.com>
Mon, 5 Oct 2020 11:36:17 +0000 (14:36 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 5 Oct 2020 11:36:17 +0000 (14:36 +0300)
The ngx_quic_hexdump() function is wrapped into macros to cast "data"
argument to "* u_char".

src/event/ngx_event_quic.h

index ece86bda7fcb4c14bfc001addc27d5775e6d49f6..7ff12f6d5159015718d340dc8fca375eb4adfb80 100644 (file)
@@ -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;