]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix signed/unsigend conversion error
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 13 Aug 2011 14:55:47 +0000 (02:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 13 Aug 2011 14:55:47 +0000 (02:55 +1200)
tools/purge/purge.cc

index c6beb6f882809fa83bc63df401a495776f3a4a03..4f3d47bee941adc46c6c37dbb1a49265df255a35 100644 (file)
@@ -292,7 +292,7 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta )
                   (unsigned long)temp.timestamp, (unsigned long)temp.lastref,
                   (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );
     } else {
-        unsigned long ul = -1;  // Match type of StoreMetaTLV fields
+        unsigned long ul = ULONG_MAX;  // Match type of StoreMetaTLV fields
         unsigned short hu = 0;  // Match type of StoreMetaTLV refcount fields
         snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5d ", ul, ul, ul, ul, 0, hu);
     }