]> git.kaiwu.me - njs.git/commitdiff
XML: fixed building with libxml2 2.12 and later.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 28 Nov 2023 02:43:36 +0000 (18:43 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 28 Nov 2023 02:43:36 +0000 (18:43 -0800)
This fixes #684 issue on Github.

external/njs_xml_module.c

index 0baaea54d231845879634b07b74698acc188439a..a2be4d7fd3f072e23e3b594ad5d1c5ce6a0b0863 100644 (file)
@@ -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];