From: Axel Viala Date: Wed, 26 Oct 2022 17:28:07 +0000 (+0200) Subject: clang-tidy: Avoid C cast do a reinterpret_cast. X-Git-Tag: dnsdist-1.8.0-rc1~220^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11910%2Fhead;p=thirdparty%2Fpdns.git clang-tidy: Avoid C cast do a reinterpret_cast. --- diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index 10083422a9..ceb2b025c4 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -219,7 +219,7 @@ string DynListener::getLine() if(d_nonlocal) { for(;;) { - d_client=accept(d_s,(sockaddr*)&remote,&remlen); + d_client = accept(d_s, reinterpret_cast(&remote), &remlen); if(d_client<0) { if(errno!=EINTR) g_log<