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:
@@ -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() */
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user