libyang REFACTOR unify lyd_node macros
LYD_CANONICAL -> LYD_CANON_VALUE
LYD_NODE_CTX -> LYD_CTX
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 80c4159..b12f035 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -1106,7 +1106,7 @@
{
LY_ERR ret;
struct lyd_node *req_op, *rep_op = NULL;
- const struct ly_ctx *ctx = LYD_NODE_CTX(request);
+ const struct ly_ctx *ctx = LYD_CTX(request);
/* find request OP */
LYD_TREE_DFS_BEGIN((struct lyd_node *)request, req_op) {
@@ -1116,7 +1116,7 @@
LYD_TREE_DFS_END(request, req_op);
}
if (!(req_op->schema->nodetype & (LYS_RPC | LYS_ACTION))) {
- LOGERR(LYD_NODE_CTX(request), LY_EINVAL, "No RPC/action in the request found.");
+ LOGERR(LYD_CTX(request), LY_EINVAL, "No RPC/action in the request found.");
return LY_EINVAL;
}