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 {