mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
s/xmlParseMemory/xmlReadMemory/
...as xmlParseMemory() is deprecated
This commit is contained in:
parent
5e422a0bc2
commit
36355c0e4e
2 changed files with 4 additions and 2 deletions
|
|
@ -1392,7 +1392,8 @@ xml_tree_walk(xmlNode *node)
|
|||
void
|
||||
rcxml_parse_xml(struct buf *b)
|
||||
{
|
||||
xmlDoc *d = xmlParseMemory(b->data, b->len);
|
||||
int options = 0;
|
||||
xmlDoc *d = xmlReadMemory(b->data, b->len, NULL, NULL, options);
|
||||
if (!d) {
|
||||
wlr_log(WLR_ERROR, "error parsing config file");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -755,7 +755,8 @@ xml_tree_walk(xmlNode *node, struct server *server)
|
|||
static bool
|
||||
parse_buf(struct server *server, struct buf *buf)
|
||||
{
|
||||
xmlDoc *d = xmlParseMemory(buf->data, buf->len);
|
||||
int options = 0;
|
||||
xmlDoc *d = xmlReadMemory(buf->data, buf->len, NULL, NULL, options);
|
||||
if (!d) {
|
||||
wlr_log(WLR_ERROR, "xmlParseMemory()");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue