From patchwork Mon Nov 20 18:53:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13461926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1634C2BB3F for ; Mon, 20 Nov 2023 18:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbjKTSxs (ORCPT ); Mon, 20 Nov 2023 13:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232156AbjKTSxr (ORCPT ); Mon, 20 Nov 2023 13:53:47 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B56FED for ; Mon, 20 Nov 2023 10:53:41 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F907C433C8; Mon, 20 Nov 2023 18:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700506420; bh=2vp4Zufz1kBPECgcRpwM9djHLwFN7C4H49D2rU0hcoo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=nU+5DoZgcQudghMy5eu5H9SIcdivi9SAyLal0+wGqAo3f+1nYbOCO8BIPXZVsa8T8 zj2lWAJRkBamgPUP46ofDuidltsVraT2HfjUHNGOkPhZZvNdhLjUnI/afK4F2OPCZO mgeMVXS3cS2Wg3Py+wARrvZa8oskoeEQmxD6eEHCpSvmme2S0y2blAZPysS8px1NxG nmfpbX3cVP6mSeHXFiMILWwgRHjrz5/D889RGfuNlOOVORxiMqXtOZpsflWVVRIFuV FBQ8WenH8G1CfDnaP9HB1J0fY68x9zBCycT/mtbGfJ9G0srGp/IyhHD20Pv4D7C+Ne nDxs4eSM4z5TQ== Subject: [PATCH RFC 1/5] junction: Replace xmlParseMemory From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: Chuck Lever Date: Mon, 20 Nov 2023 13:53:39 -0500 Message-ID: <170050641955.123525.14000282753998469753.stgit@manet.1015granger.net> In-Reply-To: <170050610386.123525.8429348635736141592.stgit@manet.1015granger.net> References: <170050610386.123525.8429348635736141592.stgit@manet.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Chuck Lever According to: https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html#xmlParseMemory xmlParseMemory() is deprecated. Replace the one call site with a call to xmlReadMemory(). Signed-off-by: Chuck Lever --- support/junction/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/junction/xml.c b/support/junction/xml.c index 813110b4f308..ec9586528cc9 100644 --- a/support/junction/xml.c +++ b/support/junction/xml.c @@ -290,7 +290,7 @@ junction_parse_xml_buf(const char *pathname, const char *name, { xmlDocPtr tmp; - tmp = xmlParseMemory(buf, (int)len); + tmp = xmlReadMemory(buf, (int)len, NULL, NULL, 0); if (tmp == NULL) { xlog(D_GENERAL, "Failed to parse XML in %s(%s)\n", pathname, name);