1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Fixed a couple of compiler warnings, caused by signed vs unsigned comparisons

This commit is contained in:
luis
2010-06-28 07:46:00 +00:00
parent 6e0e3964bb
commit c32d0c6d66

View File

@@ -337,7 +337,7 @@ int resolve(const char *hostname, u16 port, int nodns, struct sockaddr_storage *
struct addrinfo hints;
struct addrinfo *result;
char portbuf[16];
int rc;
size_t rc=0;
assert(hostname);
assert(ss);
@@ -3293,7 +3293,7 @@ pcapdev (up to a length of pcapdevlen). Returns 0 and fills in pcapdev if succe
/* Compute exponential sleep time for my_pcap_open_live(). Returned
* value is 5 to the times-th power (5^times) */
static unsigned int compute_sleep_time(unsigned int times){
int i=0;
unsigned int i=0;
unsigned int result=1;
for(i=0; i<times; i++)
result*=5;