mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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;
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ struct ultra_scan_performance_vars : public scan_performance_vars {
|
|||
|
||||
struct HssPredicate {
|
||||
public:
|
||||
int operator() (HostScanStats *lhs, HostScanStats *rhs);
|
||||
const int operator() (const HostScanStats *lhs, const HostScanStats *rhs) const;
|
||||
static struct sockaddr_storage *ss;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue