From: Francesco Chemolli Date: Wed, 29 Aug 2012 11:24:49 +0000 (+0200) Subject: Removed httpHeaderStoreReport from the global namespace. X-Git-Tag: sourceformat-review-1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f734cda260bd564b835781cd97d502e4418dc813;p=thirdparty%2Fsquid.git Removed httpHeaderStoreReport from the global namespace. --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 1191e25480..c5666ff5c2 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -280,9 +280,10 @@ static int HttpHeaderStatCount = countof(HttpHeaderStats); static int HeaderEntryParsedCount = 0; /* - * local routines + * forward declarations and local routines */ +class StoreEntry; #define assert_eid(id) assert((id) >= 0 && (id) < HDR_ENUM_END) static void httpHeaderNoteParsedEntry(http_hdr_type id, String const &value, int error); @@ -290,6 +291,9 @@ static void httpHeaderNoteParsedEntry(http_hdr_type id, String const &value, int static void httpHeaderStatInit(HttpHeaderStat * hs, const char *label); static void httpHeaderStatDump(const HttpHeaderStat * hs, StoreEntry * e); +/** store report about current header usage and other stats */ +static void httpHeaderStoreReport(StoreEntry * e); + /* * Module initialization routines */ diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 9f4c5f5618..9197ac24aa 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -44,6 +44,7 @@ class HttpHdrCc; class HttpHdrSc; class HttpHdrRange; class String; +class StoreEntry; /* constant attributes of http header fields */ @@ -305,4 +306,5 @@ HttpHeader::chunked() const extern void httpHeaderInitModule(void); extern void httpHeaderCleanModule(void); + #endif /* SQUID_HTTPHEADER_H */ diff --git a/src/protos.h b/src/protos.h index b0c73de425..44aa16cbde 100644 --- a/src/protos.h +++ b/src/protos.h @@ -56,8 +56,6 @@ class HttpRequest; class HttpReply; -/* store report about current header usage and other stats */ -void httpHeaderStoreReport(StoreEntry * e); SQUIDCEXTERN void httpHdrMangleList(HttpHeader *, HttpRequest *, int req_or_rep); #if SQUID_SNMP