Don't remove constness in a cast if it's not necessary.

Change-Id: I6f25914f6672b949586aa818b20cc98c6c21305a
Reviewed-on: https://code.wireshark.org/review/32459
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2019-03-17 14:18:32 -07:00
parent cced5fb949
commit 86c9d41510
1 changed files with 2 additions and 2 deletions

View File

@ -335,9 +335,9 @@ public:
hostlist_talker_t *endp_item = &g_array_index(conv_array_, hostlist_talker_t, conv_idx_);
const mmdb_lookup_t *mmdb_lookup = NULL;
if (endp_item->myaddress.type == AT_IPv4) {
mmdb_lookup = maxmind_db_lookup_ipv4((ws_in4_addr *) endp_item->myaddress.data);
mmdb_lookup = maxmind_db_lookup_ipv4((const ws_in4_addr *) endp_item->myaddress.data);
} else if (endp_item->myaddress.type == AT_IPv6) {
mmdb_lookup = maxmind_db_lookup_ipv6((ws_in6_addr *) endp_item->myaddress.data);
mmdb_lookup = maxmind_db_lookup_ipv6((const ws_in6_addr *) endp_item->myaddress.data);
}
return mmdb_lookup && mmdb_lookup->found ? mmdb_lookup : NULL;
}