1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Increase const-ness of HssPredicate::operator() to avoid warnings.

This commit is contained in:
dmiller
2016-08-19 12:38:29 +00:00
parent 4f255e4129
commit 923f1de3e4
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ extern "C" int g_has_npcap_loopback;
#endif
int HssPredicate::operator() (HostScanStats *lhs, HostScanStats *rhs) {
const int HssPredicate::operator() (const HostScanStats *lhs, const HostScanStats *rhs) const {
const struct sockaddr_storage *lss, *rss;
lss = (lhs) ? lhs->target->TargetSockAddr() : ss;
rss = (rhs) ? rhs->target->TargetSockAddr() : ss;