From: Francesco Chemolli Date: Thu, 13 May 2010 15:08:27 +0000 (+0200) Subject: Renamed config define FORW_VIA_DB to standard USE_FORW_VIA_DB X-Git-Tag: SQUID_3_2_0_1~216^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21f6708de78c1b4cdc26e0fbab2c843c2f970f58;p=thirdparty%2Fsquid.git Renamed config define FORW_VIA_DB to standard USE_FORW_VIA_DB --- diff --git a/configure.in b/configure.in index aace49c355..5dbe9e3fa9 100644 --- a/configure.in +++ b/configure.in @@ -1153,7 +1153,7 @@ AC_ARG_ENABLE(forw-via-db, AS_HELP_STRING([--enable-forw-via-db],[Enable Forw/Via database]), [ SQUID_YESNO([$enableval],[unrecognized argument to --enable-forw-via-db: $enableval]) ]) -SQUID_DEFINE_BOOL(FORW_VIA_DB,${enable_forw_via_db:=no}, +SQUID_DEFINE_BOOL(USE_FORW_VIA_DB,${enable_forw_via_db:=no}, [Enable Forw/Via database]) AC_MSG_NOTICE([Forw/Via database enabled: $enable_forw_via_db]) diff --git a/src/client_side_request.cc b/src/client_side_request.cc index caf92ec9cd..b2a3d27a85 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -937,7 +937,7 @@ clientInterpretRequestHeaders(ClientHttpRequest * http) request->flags.loopdetect = 1; } -#if FORW_VIA_DB +#if USE_FORW_VIA_DB fvdbCountVia(s.termedBuf()); #endif @@ -960,7 +960,7 @@ clientInterpretRequestHeaders(ClientHttpRequest * http) logReferer(fqdnFromAddr(http->getConn()->log_addr), str, http->log_uri); #endif -#if FORW_VIA_DB +#if USE_FORW_VIA_DB if (req_hdr->has(HDR_X_FORWARDED_FOR)) { String s = req_hdr->getList(HDR_X_FORWARDED_FOR); diff --git a/src/log/access_log.cc b/src/log/access_log.cc index eec2b5912b..85afb20709 100644 --- a/src/log/access_log.cc +++ b/src/log/access_log.cc @@ -94,7 +94,7 @@ const char *log_tags[] = { "LOG_TYPE_MAX" }; -#if FORW_VIA_DB +#if USE_FORW_VIA_DB typedef struct { hash_link hash; @@ -2037,7 +2037,7 @@ void accessLogRotate(void) { customlog *log; -#if FORW_VIA_DB +#if USE_FORW_VIA_DB fvdbClear(); #endif @@ -2114,7 +2114,7 @@ hierarchyNote(HierarchyLogEntry * hl, static void accessLogRegisterWithCacheManager(void) { -#if FORW_VIA_DB +#if USE_FORW_VIA_DB fvdbRegisterWithCacheManager(); #endif } @@ -2194,7 +2194,7 @@ accessLogInit(void) } #endif -#if FORW_VIA_DB +#if USE_FORW_VIA_DB fvdbInit(); @@ -2219,7 +2219,7 @@ accessLogTime(time_t t) } -#if FORW_VIA_DB +#if USE_FORW_VIA_DB static void fvdbInit(void) diff --git a/src/protos.h b/src/protos.h index d54dc3c4bf..caccb5851a 100644 --- a/src/protos.h +++ b/src/protos.h @@ -47,7 +47,7 @@ class HttpRequestMethod; -#if FORW_VIA_DB +#if USE_FORW_VIA_DB SQUIDCEXTERN void fvdbCountVia(const char *key); SQUIDCEXTERN void fvdbCountForw(const char *key); #endif