commit | 9e68508890824c71fc1a6df28e75781955ce63cd | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Jan 29 14:49:09 2021 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Jan 29 17:02:06 2021 +0100 |
tree | e12ee1e0e404b66101098ea1c9b2cd63cef07766 | |
parent | 9149efd5c225bfd7de6db1dd92b0466f699458a3 [diff] [blame] |
data tree REFACTOR use common union in all data nodes Also, now redundant casting removed where possible. Fixes #1388
diff --git a/src/printer_data.c b/src/printer_data.c index 14bb879..b66511d 100644 --- a/src/printer_data.c +++ b/src/printer_data.c
@@ -59,7 +59,7 @@ if (root) { /* get first top-level sibling */ while (root->parent) { - root = (struct lyd_node *)root->parent; + root = lyd_parent(root); } while (root->prev->next) { root = root->prev;