changeset 8893:126a15530136 quic

QUIC: removed unused argument in ngx_quic_create_short_header().
author Vladimir Homutov <vl@nginx.com>
date Thu, 07 Oct 2021 12:24:47 +0300
parents d8ac4d3c24ac
children de7b9af30fc6
files src/event/quic/ngx_event_quic_transport.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -96,7 +96,7 @@ static ngx_int_t ngx_quic_parse_long_hea
 static size_t ngx_quic_create_long_header(ngx_quic_header_t *pkt, u_char *out,
     size_t pkt_len, u_char **pnp);
 static size_t ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out,
-    size_t pkt_len, u_char **pnp);
+    u_char **pnp);
 
 static ngx_int_t ngx_quic_frame_allowed(ngx_quic_header_t *pkt,
     ngx_uint_t frame_type);
@@ -618,7 +618,7 @@ ngx_quic_create_header(ngx_quic_header_t
     u_char **pnp)
 {
     return ngx_quic_short_pkt(pkt->flags)
-           ? ngx_quic_create_short_header(pkt, out, pkt_len, pnp)
+           ? ngx_quic_create_short_header(pkt, out, pnp)
            : ngx_quic_create_long_header(pkt, out, pkt_len, pnp);
 }
 
@@ -676,7 +676,7 @@ ngx_quic_create_long_header(ngx_quic_hea
 
 static size_t
 ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out,
-    size_t pkt_len, u_char **pnp)
+    u_char **pnp)
 {
     u_char  *p, *start;