X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Fxml-utils%2Fvalidate_xml.c;fp=tests%2Futils%2Fxml-utils%2Fvalidate_xml.c;h=bb67e56e17edea75706b56c50ec072c49f2433be;hp=eafe8b779915ec5852fa00685104fbd757a04e1c;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/tests/utils/xml-utils/validate_xml.c b/tests/utils/xml-utils/validate_xml.c index eafe8b779..bb67e56e1 100644 --- a/tests/utils/xml-utils/validate_xml.c +++ b/tests/utils/xml-utils/validate_xml.c @@ -11,7 +11,6 @@ * argv[2] Path to the XML to be validated */ -#include #include #include #include @@ -26,6 +25,7 @@ #include #include +#include struct validation_ctx { xmlSchemaParserCtxtPtr parser_ctx; @@ -124,8 +124,8 @@ static int validate_xml(const char *xml_file_path, struct validation_ctx *ctx) int ret; xmlDocPtr doc = NULL; - assert(xml_file_path); - assert(ctx); + LTTNG_ASSERT(xml_file_path); + LTTNG_ASSERT(ctx); /* Open the document */ doc = xmlParseFile(xml_file_path);