schema REFACTOR unify functions to search on schema tree
- rename ly_ctx_get_node() to lys_find_path()
- rename lys_find_path_atoms() to lys_find_lypath_atoms()
- implement new lys_find_path_atoms() as a wrapper around
lys_find_lypath_atoms()
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 70f700a..7d86baa 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -788,7 +788,7 @@
/* convert (print) to FORMAT */
if (outformat_s) {
if (outtarget_s) {
- const struct lysc_node *node = ly_ctx_get_node(ctx, NULL, outtarget_s, 0);
+ const struct lysc_node *node = lys_find_path(ctx, NULL, outtarget_s, 0);
if (node) {
lys_print_node(out, node, outformat_s, outline_length_s, outoptions_s);
} else {