1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Remove incorrect use of const on return type (not pointer). #1834

This commit is contained in:
dmiller
2019-12-25 20:01:15 +00:00
parent 8192ce2b6c
commit 0c2a3776f0
2 changed files with 2 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ int EthernetHeader::setEtherType(u16 val){
/** Returns destination port in HOST byte order */
const u16 EthernetHeader::getEtherType() const {
u16 EthernetHeader::getEtherType() const {
return ntohs(this->h.eth_type);
} /* End of getEtherType() */

View File

@@ -166,7 +166,7 @@ extern "C" int g_has_npcap_loopback;
#endif
const int HssPredicate::operator() (const HostScanStats *lhs, const 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;