mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Remove incorrect use of const on return type (not pointer). #1834
This commit is contained in:
parent
8192ce2b6c
commit
0c2a3776f0
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue