From: wessels <> Date: Thu, 27 Apr 2006 23:26:20 +0000 (+0000) Subject: Cosmetic: in refreshIsCachable(), change a hard-coded number "200" to X-Git-Tag: SQUID_3_0_PRE4~220 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=451c8350dd15232e33ce541d1406f9907c654fa5;p=thirdparty%2Fsquid.git Cosmetic: in refreshIsCachable(), change a hard-coded number "200" to its corresponding enum value to clarify that the 'reason' variable is a stale/fresh reason code, rather than an HTTP status code. --- diff --git a/src/refresh.cc b/src/refresh.cc index c7f81a574e..0d945ee6e7 100644 --- a/src/refresh.cc +++ b/src/refresh.cc @@ -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;