/*
- * 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.
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);
}
}
- ClientInfo *c = reinterpret_cast<ClientInfo *>(hash_next(client_table));
+ ClientInfo *c = static_cast<ClientInfo *>(hash_next(client_table));
hash_last(client_table);