From 329080767f56ceca0cfa79fd79f2f1e703ca3cac Mon Sep 17 00:00:00 2001 From: Axel Viala Date: Wed, 26 Oct 2022 19:28:07 +0200 Subject: [PATCH] clang-tidy: Avoid C cast do a reinterpret_cast. --- pdns/dynlistener.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<