]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix size obscures MemBlob::size warnings.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 3 Dec 2010 01:56:04 +0000 (14:56 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 3 Dec 2010 01:56:04 +0000 (14:56 +1300)
src/MemBlob.cc

index ad16dbef44b5d6a092c7e001450d7c31d5315757..7da391d23284d499c2842fece9cf5373554681b0 100644 (file)
@@ -113,18 +113,18 @@ MemBlob::~MemBlob()
  * by MemPools via memAllocString.
  */
 MemBlob::size_type
-MemBlob::calcAllocSize(const size_type size) const
+MemBlob::calcAllocSize(const size_type sz) const
 {
-    if (size <= 36) return 36;
-    if (size <= 128) return 128;
-    if (size <= 512) return 512;
-    if (size <= 4096) return RoundTo(size, 512);
+    if (sz <= 36) return 36;
+    if (sz <= 128) return 128;
+    if (sz <= 512) return 512;
+    if (sz <= 4096) return RoundTo(sz, 512);
     // XXX: recover squidSystemPageSize functionality. It's easy for
     //      the main squid, harder for tests
 #if 0
-    return RoundTo(size, squidSystemPageSize);
+    return RoundTo(sz, squidSystemPageSize);
 #else
-    return RoundTo(size, 4096);
+    return RoundTo(sz, 4096);
 #endif
 }