]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: fix some compiler complaints
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Apr 2011 13:25:44 +0000 (07:25 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Apr 2011 13:25:44 +0000 (07:25 -0600)
src/LeakFinder.h
src/adaptation/icap/ModXact.cc
src/htcp.h

index dfb2ae8423b6a739a732d719c0cc38ad778203f8..d5611cfa0efd16d7e0f4b09b45b1ffa7d83c8f09 100644 (file)
@@ -1,10 +1,10 @@
-
-
-
 #ifndef SQUID_LEAKFINDER_H
 #define SQUID_LEAKFINDER_H
 
 #if USE_LEAKFINDER
+
+#include "hash.h"
+
 #define leakAdd(p,l) if (l) l->add(p,__FILE__,__LINE__)
 #define leakTouch(p,l) if (l) l->touch(p,__FILE__,__LINE__)
 #define leakFree(p,l) if (l) l->free(p,__FILE__,__LINE__)
index 2e0fbc90e7000892aae820a18dfe0a2392f42d8f..5fffd340e2c14957ebdbac3a2f384e5fadf7c3f4 100644 (file)
@@ -1620,7 +1620,6 @@ void Adaptation::Icap::VirginBodyAct::disable()
 void Adaptation::Icap::VirginBodyAct::progress(size_t size)
 {
     Must(active());
-    Must(static_cast<int64_t>(size) >= 0);
     theStart += static_cast<int64_t>(size);
 }
 
index 83f63f37f83e8d1ed637773224a5f10a53b6fe42..bcbc00be6041650908ebc8c46479d313bc6bc9ec 100644 (file)
@@ -33,6 +33,7 @@
 #if USE_HTCP
 
 #include "HttpHeader.h"
+#include "typedefs.h"
 
 class IpAddress;