1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Coding style fix (grep ' =[^ =]' *.h *.cc).

This commit is contained in:
d33tah
2014-07-08 14:47:56 +00:00
parent 2cc8da210a
commit e267e79938
2 changed files with 3 additions and 3 deletions

View File

@@ -1280,7 +1280,7 @@ int FPHost::choose_osscan_ports() {
/* Choose a closed TCP port. */
if (this->target_host->FPR != NULL && this->target_host->FPR->osscan_closedtcpport > 0) {
this->closed_port_tcp =this->target_host->FPR->osscan_closedtcpport;
this->closed_port_tcp = this->target_host->FPR->osscan_closedtcpport;
} else if ((tport = this->target_host->ports.nextPort(NULL, &port, IPPROTO_TCP, PORT_CLOSED))) {
this->closed_port_tcp = tport->portno;
/* If it is zero, let's try another one if there is one */
@@ -1293,7 +1293,7 @@ int FPHost::choose_osscan_ports() {
this->closed_port_tcp = tport->portno;
/* But again we'd prefer not to have zero */
if (tport->portno == 0)
if ((tport =this->target_host->ports.nextPort(tport, &port, IPPROTO_TCP, PORT_UNFILTERED)))
if ((tport = this->target_host->ports.nextPort(tport, &port, IPPROTO_TCP, PORT_UNFILTERED)))
this->closed_port_tcp = tport->portno;
} else {
/* If we don't have a closed port, set it to -1 so we don't send probes that

View File

@@ -196,7 +196,7 @@ class PacketRateMeter {
double getOverallPacketRate(const struct timeval *now = NULL) const;
double getCurrentPacketRate(const struct timeval *now = NULL, bool update = true);
double getOverallByteRate(const struct timeval *now = NULL) const;
double getCurrentByteRate(const struct timeval *now = NULL, bool update =true);
double getCurrentByteRate(const struct timeval *now = NULL, bool update = true);
unsigned long long getNumPackets(void) const;
unsigned long long getNumBytes(void) const;