1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

ngtcp2: update to modified qlog callback prototype

Closes #5675
This commit is contained in:
Daniel Stenberg 2020-07-12 16:32:10 +02:00
parent 9466034561
commit 0d4c3618e9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -150,9 +150,11 @@ quic_from_gtls_level(gnutls_record_encryption_level_t gtls_level)
}
#endif
static void qlog_callback(void *user_data, const void *data, size_t datalen)
static void qlog_callback(void *user_data, uint32_t flags,
const void *data, size_t datalen)
{
struct quicsocket *qs = (struct quicsocket *)user_data;
(void)flags;
if(qs->qlogfd != -1) {
ssize_t rc = write(qs->qlogfd, data, datalen);
if(rc == -1) {