Skip to content

Commit 600813a

Browse files
authored
Update curl_ngtcp2.c
1 parent d6c0b74 commit 600813a

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

lib/vquic/curl_ngtcp2.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@
7171
#include "curl_ngtcp2.h"
7272

7373

74-
/* The last 3 #include files should be in this order */
75-
#include "../curl_printf.h"
76-
#include "../curl_memory.h"
77-
#include "../memdebug.h"
78-
79-
8074
#define QUIC_MAX_STREAMS (256 * 1024)
8175
#define QUIC_MAX_DATA (1 * 1024 * 1024)
8276
#define QUIC_HANDSHAKE_TIMEOUT (10 * NGTCP2_SECONDS)
@@ -1798,7 +1792,7 @@ static CURLcode cf_ngtcp2_recv_pkts(const unsigned char *buf, size_t buflen,
17981792
int rv;
17991793

18001794
if(!rctx->pkt_count) {
1801-
pktx_update_time(pktx->data, pktx, pktx->cf);
1795+
pktx_update_time(pktx, pktx->cf);
18021796
ngtcp2_path_storage_zero(&pktx->ps);
18031797
}
18041798

@@ -1914,8 +1908,8 @@ static CURLcode read_pkt_to_send(void *userp,
19141908
struct h3_stream_ctx *stream = H3_STREAM_CTX(ctx, x->data);
19151909
DEBUGASSERT(ndatalen == -1);
19161910
nghttp3_conn_block_stream(ctx->h3conn, stream_id);
1917-
CURL_TRC_CF(x->data, x->cf, "[%" FMT_PRId64 "] block quic flow",
1918-
(curl_int64_t)stream_id);
1911+
CURL_TRC_CF(x->data, x->cf, "[%" PRId64 "] block quic flow",
1912+
stream_id);
19191913
DEBUGASSERT(stream);
19201914
if(stream)
19211915
stream->quic_flow_blocked = TRUE;
@@ -1977,7 +1971,7 @@ static CURLcode cf_progress_egress(struct Curl_cfilter *cf,
19771971
pktx = &local_pktx;
19781972
}
19791973
else {
1980-
pktx_update_time(data, pktx, cf);
1974+
pktx_update_time(pktx, cf);
19811975
ngtcp2_path_storage_zero(&pktx->ps);
19821976
}
19831977

0 commit comments

Comments
 (0)