From f036689431ce7dd885ce1c6b5b694494cb7f43df Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Sun, 3 Dec 2023 06:19:19 +0000 Subject: [PATCH] xmlErrorPtr to const xmlError * aligning with libxml 2.12 ref: - https://github.com/GNOME/libxml2/commit/45470611b047db78106dcb2fdbd4164163c15ab7 --- xmlstarlet/src/xml.c | 2 +- xmlstarlet/src/xmlstar.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmlstarlet/src/xml.c b/xmlstarlet/src/xml.c index cf47cc26..e6f19c1a 100644 --- a/xmlstarlet/src/xml.c +++ b/xmlstarlet/src/xml.c @@ -104,7 +104,7 @@ void reportGenericError(void* ctx, const char * msg, ...) { /* by default all errors are reported */ static ErrorInfo errorInfo = { NULL, NULL, VERBOSE, CONTINUE }; -void reportError(void *ptr, xmlErrorPtr error) +void reportError(void *ptr, const xmlError *error) { ErrorInfo *errorInfo = (ErrorInfo*) ptr; assert(errorInfo); diff --git a/xmlstarlet/src/xmlstar.h b/xmlstarlet/src/xmlstar.h index 3e1eed35..e8d71770 100644 --- a/xmlstarlet/src/xmlstar.h +++ b/xmlstarlet/src/xmlstar.h @@ -32,7 +32,7 @@ typedef struct _errorInfo { ErrorStop stop; } ErrorInfo; -void reportError(void *ptr, xmlErrorPtr error); +void reportError(void *ptr, const xmlError *error); void suppressErrors(void); typedef struct _gOptions {