From 09faa6aa2c4d22d0ca6e17232484ebb949ff1d79 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 15 Jul 2020 23:52:17 +0900 Subject: [PATCH] Compile with the latest ngtcp2 --- src/h2load_quic.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index b3b2b6f1..670ba6f0 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -375,10 +375,8 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, params.max_udp_payload_size = quic.max_pktlen; auto path = ngtcp2_path{ - {local_addrlen, - const_cast(reinterpret_cast(local_addr))}, - {remote_addrlen, - const_cast(reinterpret_cast(remote_addr))}, + {local_addrlen, const_cast(local_addr)}, + {remote_addrlen, const_cast(remote_addr)}, }; rv = ngtcp2_conn_client_new(&quic.conn, &dcid, &scid, &path, NGTCP2_PROTO_VER, @@ -525,8 +523,8 @@ int Client::read_quic() { assert(quic.conn); auto path = ngtcp2_path{ - {local_addr.len, reinterpret_cast(&local_addr.su.sa)}, - {addrlen, reinterpret_cast(&su.sa)}, + {local_addr.len, &local_addr.su.sa}, + {addrlen, &su.sa}, }; rv = ngtcp2_conn_read_pkt(quic.conn, &path, buf.data(), nread,