From: gkinkie@gmail.com Date: Sat, 4 Mar 2023 01:46:20 +0000 (+0000) Subject: ESI: Fix build [-Wdeprecated-declarations] (#1295) X-Git-Tag: SQUID_7_0_1~470 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bc933b5e6e451671ffd783cf655b2e1f9f49d72;p=thirdparty%2Fsquid.git ESI: Fix build [-Wdeprecated-declarations] (#1295) Replaced deprecated htmlDefaultSAXHandlerInit() libxml2 initialization call with xmlInitParser(). --- diff --git a/src/esi/Libxml2Parser.cc b/src/esi/Libxml2Parser.cc index ac2e73df7d..0f2e770682 100644 --- a/src/esi/Libxml2Parser.cc +++ b/src/esi/Libxml2Parser.cc @@ -108,7 +108,7 @@ esi_getEntitySAXFunc(void * /* ctx */, const xmlChar *name) ESILibxml2Parser::ESILibxml2Parser(ESIParserClient *aClient) : theClient (aClient) { xmlSAXHandler sax; - htmlDefaultSAXHandlerInit(); + xmlInitParser(); memset(&sax, 0, sizeof(sax)); sax.startElement = esi_startElementSAXFunc; sax.endElement = esi_endElementSAXFunc;