Skip to content

Commit cb78129

Browse files
committed
s1kd-newupf: Remove use of deprecated content field
Replaced the use of the deprecated xmlBuffer.content field with the xmlBufferContent function.
1 parent 855abaf commit cb78129

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/s1kd-newupf/s1kd-newupf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "s1kd_tools.h"
1616

1717
#define PROG_NAME "s1kd-newupf"
18-
#define VERSION "3.0.0"
18+
#define VERSION "3.0.1"
1919

2020
#define ERR_PREFIX PROG_NAME ": ERROR: "
2121

@@ -367,7 +367,7 @@ static bool sameNodes(xmlNodePtr a, xmlNodePtr b)
367367
xmlNodeDump(bufA, a->doc, a, 0, 0);
368368
xmlNodeDump(bufB, b->doc, b, 0, 0);
369369

370-
equal = xmlStrcmp(bufA->content, bufB->content) == 0;
370+
equal = xmlStrcmp(xmlBufferContent(bufA), xmlBufferContent(bufB)) == 0;
371371

372372
xmlBufferFree(bufA);
373373
xmlBufferFree(bufB);

0 commit comments

Comments
 (0)