1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

o Fixed a bunch of code to avoid compilation warning messages (at

least on some Linux machines) [Andrew J. Bennieston]
This commit is contained in:
fyodor
2008-04-09 02:11:20 +00:00
parent fa9bd6be6e
commit 5551c5a311
21 changed files with 144 additions and 140 deletions

View File

@@ -286,7 +286,7 @@ public:
/* Returns true if the given tryno and pingseq match those within this
probe. */
bool check_tryno_pingseq(unsigned int tryno, unsigned int pingseq) {
return pingseq == 0 && tryno >= this->tryno || pingseq > 0 && pingseq == this->pingseq;
return (pingseq == 0 && tryno >= this->tryno) || (pingseq > 0 && pingseq == this->pingseq);
}
u8 tryno; /* Try (retransmission) number of this probe */