From: Amos Jeffries Date: Sun, 13 Jan 2013 06:59:55 +0000 (+1300) Subject: Fix signed/unsigned error in rev.12573 X-Git-Tag: SQUID_3_4_0_1~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af9db3fd83a544a9ea615024a50ebed0e2abd5b;p=thirdparty%2Fsquid.git Fix signed/unsigned error in rev.12573 --- diff --git a/src/wccp2.cc b/src/wccp2.cc index b7da8b7fa0..5267a7726d 100644 --- a/src/wccp2.cc +++ b/src/wccp2.cc @@ -1601,7 +1601,7 @@ wccp2HereIam(void *voidnotused) service_list_ptr->wccp_packet_size); } else { errno = 0; - if (send(theWccp2Connection, &service_list_ptr->wccp_packet, service_list_ptr->wccp_packet_size, 0) < service_list_ptr->wccp_packet_size) + if (send(theWccp2Connection, &service_list_ptr->wccp_packet, service_list_ptr->wccp_packet_size, 0) < static_cast(service_list_ptr->wccp_packet_size)) debugs(80, 2, "ERROR: failed to send WCCPv2 HERE_I_AM packet to " << router << " : " << xstrerror()); } } @@ -1986,7 +1986,7 @@ wccp2AssignBuckets(void *voidnotused) offset); } else { errno = 0; - if (send(theWccp2Connection, &wccp_packet, offset, 0) < offset) + if (send(theWccp2Connection, &wccp_packet, offset, 0) < static_cast(offset)) debugs(80, 2, "ERROR: failed to send WCCPv2 HERE_I_AM packet to " << tmp_rtr << " : " << xstrerror()); } }