]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy: Avoid C cast do a reinterpret_cast. 11910/head
authorAxel Viala <axel.viala@darnuria.eu>
Wed, 26 Oct 2022 17:28:07 +0000 (19:28 +0200)
committerAxel Viala <axel.viala@darnuria.eu>
Wed, 26 Oct 2022 17:28:45 +0000 (19:28 +0200)
pdns/dynlistener.cc

index 10083422a918b1877a5a8f79198b60a4af73fda7..ceb2b025c41ce9d74392f162ce02322be8416d17 100644 (file)
@@ -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<sockaddr *>(&remote), &remlen);
       if(d_client<0) {
         if(errno!=EINTR)
           g_log<<Logger::Error<<"Unable to accept controlsocket connection ("<<d_s<<"): "<<stringerror()<<endl;