Welcome! Log In Create A New Profile

Advanced

[njs] XML: fixed building with libxml2 2.12 and later.

Dmitry Volyntsev
November 27, 2023 11:42PM
details: https://hg.nginx.org/njs/rev/6a72cee054f6
branches:
changeset: 2240:6a72cee054f6
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Mon Nov 27 18:43:36 2023 -0800
description:
XML: fixed building with libxml2 2.12 and later.

This fixes #684 issue on Github.

diffstat:

external/njs_xml_module.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r d82a667c50af -r 6a72cee054f6 external/njs_xml_module.c
--- a/external/njs_xml_module.c Mon Nov 27 18:43:04 2023 -0800
+++ b/external/njs_xml_module.c Mon Nov 27 18:43:36 2023 -0800
@@ -1986,10 +1986,10 @@ njs_xml_nset_cleanup(void *data)
static void
njs_xml_error(njs_vm_t *vm, njs_xml_doc_t *current, const char *fmt, ...)
{
- u_char *p, *last;
- va_list args;
- xmlError *err;
- u_char errstr[NJS_MAX_ERROR_STR];
+ u_char *p, *last;
+ va_list args;
+ const xmlError *err;
+ u_char errstr[NJS_MAX_ERROR_STR];

last = &errstr[NJS_MAX_ERROR_STR];

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] XML: fixed building with libxml2 2.12 and later.

Dmitry Volyntsev 163 November 27, 2023 11:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready