]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix WCCPv2 'comparison between signed and unsigned integer expressions'
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Jan 2013 07:00:55 +0000 (00:00 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Jan 2013 07:00:55 +0000 (00:00 -0700)
src/wccp2.cc

index 7992366dc80a4df78f8fb835ba83cc23a6083ea9..48f3d0660200c80d5db19670ebad45112102296b 100644 (file)
@@ -1611,7 +1611,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<int>(service_list_ptr->wccp_packet_size))
                     debugs(80, 2, "ERROR: failed to send WCCPv2 HERE_I_AM packet to " << router << " : " << xstrerror());
             }
         }
@@ -1996,7 +1996,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<int>(offset))
                         debugs(80, 2, "ERROR: failed to send WCCPv2 HERE_I_AM packet to " << tmp_rtr << " : " << xstrerror());
                 }
             }