mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Increase const-ness of HssPredicate::operator() to avoid warnings.
This commit is contained in:
parent
4f255e4129
commit
923f1de3e4
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue