From c32d0c6d666b939e63671139a7d1bf26512dd967 Mon Sep 17 00:00:00 2001 From: luis Date: Mon, 28 Jun 2010 07:46:00 +0000 Subject: [PATCH] Fixed a couple of compiler warnings, caused by signed vs unsigned comparisons --- libnetutil/netutil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index d28de54e0..31a01131f 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -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