diff --git a/idle_scan.cc b/idle_scan.cc index 4ef3d986e..9ce8330f8 100644 --- a/idle_scan.cc +++ b/idle_scan.cc @@ -313,7 +313,7 @@ static int ipid_proxy_probe(struct idle_proxy_info *proxy, int *probes_sent, gettimeofday(&tv_end, NULL); if (ip) { if (o.af() == AF_INET) { - if (bytes < ( 4 * ip->ip_hl) + 14U) + if (bytes < (4 * ip->ip_hl) + 14U) continue; if (ip->ip_p == IPPROTO_TCP) tcp = ((struct tcp_hdr *) (((char *) ip) + 4 * ip->ip_hl)); @@ -344,7 +344,7 @@ static int ipid_proxy_probe(struct idle_proxy_info *proxy, int *probes_sent, else if (o.af() == AF_INET6) inet_ntop(AF_INET6, &(ip6->ip6_src), straddr, sizeof(straddr)); error("Received unexpected response packet from %s during IP ID zombie probing:", straddr); - readtcppacket( (unsigned char *) ip, MIN(ntohs(ip->ip_len), bytes)); + readtcppacket((unsigned char *) ip, MIN(ntohs(ip->ip_len), bytes)); } continue; } @@ -767,7 +767,7 @@ static void initialize_idleproxy(struct idle_proxy_info *proxy, char *proxyName, continue; /* probably a duplicate */ } lastipid = ip->ip_id; - if (bytes < ( 4 * ip->ip_hl) + 14U) + if (bytes < (4 * ip->ip_hl) + 14U) continue; if (ip->ip_p == IPPROTO_TCP) { diff --git a/osscan2.cc b/osscan2.cc index 89d5c4e4b..12a5de824 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -2483,7 +2483,7 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) { dhz = (double) ts_diffs[i] / (time_usec_diffs[i] / 1000000.0); /* printf("ts incremented by %d in %li usec -- %fHZ\n", ts_diffs[i], time_usec_diffs[i], dhz); */ - avg_ts_hz += dhz / ( hss->si.responses - 1); + avg_ts_hz += dhz / (hss->si.responses - 1); } if (avg_ts_hz > 0 && avg_ts_hz < 5.66) { /* relatively wide range because sampling time so short and frequency so slow */