]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/client_db.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / client_db.cc
index bde5da619ec216c4d9aefca7d4bbe8842ffe357e..be0bf50e4688e812bbd8f7db54e2e968265ce0e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -276,7 +276,7 @@ clientdbDump(StoreEntry * sentry)
     hash_first(client_table);
 
     while (hash_link *hash = hash_next(client_table)) {
-        const ClientInfo *c = reinterpret_cast<const ClientInfo *>(hash);
+        const ClientInfo *c = static_cast<const ClientInfo *>(hash);
         storeAppendPrintf(sentry, "Address: %s\n", hashKeyStr(hash));
         if ( (name = fqdncache_gethostbyaddr(c->addr, 0)) ) {
             storeAppendPrintf(sentry, "Name:    %s\n", name);
@@ -440,7 +440,7 @@ client_entry(Ip::Address *current)
         }
     }
 
-    ClientInfo *c = reinterpret_cast<ClientInfo *>(hash_next(client_table));
+    ClientInfo *c = static_cast<ClientInfo *>(hash_next(client_table));
 
     hash_last(client_table);