From b60a34bcb161b28df99f33e0832a73d3e216b4f3 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 28 Apr 2006 01:07:16 +0000 Subject: [PATCH] bugfix: ICAPConfig calls aclParseAccessLine(), which now takes a ConfigParser argument. Use the LegacyParser from cache_cf.cc, but we need to make it global instead of static. --- src/ICAP/ICAPConfig.cc | 5 +++-- src/cache_cf.cc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ICAP/ICAPConfig.cc b/src/ICAP/ICAPConfig.cc index 90f64807c4..4d3c634a92 100644 --- a/src/ICAP/ICAPConfig.cc +++ b/src/ICAP/ICAPConfig.cc @@ -1,6 +1,6 @@ /* - * $Id: ICAPConfig.cc,v 1.7 2006/04/23 14:14:18 serassio Exp $ + * $Id: ICAPConfig.cc,v 1.8 2006/04/27 19:07:16 wessels Exp $ * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- @@ -45,6 +45,7 @@ #include "ACLChecklist.h" #include "wordlist.h" +extern ConfigParser LegacyParser; // from cache_cf.cc ICAPConfig TheICAPConfig; ICAPServiceRep::Pointer @@ -360,7 +361,7 @@ ICAPConfig::parseICAPAccess() fatalf("Did not find ICAP class '%s' referenced on line %d\n", aKey.buf(), config_lineno); - aclParseAccessLine(&theClass->accessList); + aclParseAccessLine(LegacyParser, &theClass->accessList); }; void diff --git a/src/cache_cf.cc b/src/cache_cf.cc index e98caf1544..7778a5299e 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.491 2006/04/25 12:00:29 robertc Exp $ + * $Id: cache_cf.cc,v 1.492 2006/04/27 19:07:16 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -146,7 +146,7 @@ static int check_null_https_port_list(const https_port_list *); static void parse_b_size_t(size_t * var); /* a parser for legacy code that uses the global approach */ -static ConfigParser LegacyParser = ConfigParser(); +ConfigParser LegacyParser = ConfigParser(); void self_destruct(void) -- 2.47.2