]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cosmetic: in refreshIsCachable(), change a hard-coded number "200" to
authorwessels <>
Thu, 27 Apr 2006 23:26:20 +0000 (23:26 +0000)
committerwessels <>
Thu, 27 Apr 2006 23:26:20 +0000 (23:26 +0000)
its corresponding enum value to clarify that the 'reason' variable is
a stale/fresh reason code, rather than an HTTP status code.

src/refresh.cc

index c7f81a574edc9da4fad8072545154a8f2ec1fcd4..0d945ee6e7993c78742b513e265cb16acd48bb9f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: refresh.cc,v 1.69 2006/04/24 22:30:52 wessels Exp $
+ * $Id: refresh.cc,v 1.70 2006/04/27 17:26:20 wessels Exp $
  *
  * DEBUG: section 22    Refresh Calculation
  * AUTHOR: Harvest Derived
@@ -399,7 +399,7 @@ refreshIsCachable(const StoreEntry * entry)
     refreshCounts[rcStore].total++;
     refreshCounts[rcStore].status[reason]++;
 
-    if (reason < 200)
+    if (reason < STALE_MUST_REVALIDATE)
         /* Does not need refresh. This is certainly cachable */
         return 1;