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

Dmitry Volyntsev xeioex at nginx.com
Tue Nov 28 04:41:51 UTC 2023


details:   https://hg.nginx.org/njs/rev/6a72cee054f6
branches:  
changeset: 2240:6a72cee054f6
user:      Dmitry Volyntsev <xeioex at 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];
 


More information about the nginx-devel mailing list