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,