From 9cb6dd338d40d198f7e271e82db161bc36977725 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 20 Jul 2009 23:06:26 +0000 Subject: [PATCH] Use logical rather than bitwise or in NmapOps::RawScan to avoid a compiler warning about mixing int and bool types. --- NmapOps.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NmapOps.cc b/NmapOps.cc index 74f1724fa..5983a7b7f 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -323,7 +323,7 @@ bool NmapOps::UDPScan() { } bool NmapOps::RawScan() { - if (ackscan|finscan|idlescan|ipprotscan|maimonscan|nullscan|osscan|synscan|udpscan|windowscan|xmasscan|sctpinitscan|sctpcookieechoscan|traceroute) + if (ackscan||finscan||idlescan||ipprotscan||maimonscan||nullscan||osscan||synscan||udpscan||windowscan||xmasscan||sctpinitscan||sctpcookieechoscan||traceroute) return true; if (pingtype & (PINGTYPE_ICMP_PING|PINGTYPE_ICMP_MASK|PINGTYPE_ICMP_TS|PINGTYPE_TCP_USE_ACK|PINGTYPE_UDP|PINGTYPE_SCTP_INIT)) return true;