schema tree CHANGE keep compiled identities on a single place
Instead of moving identities between lys_module and lysc_module, keep them
in lys_module structure and save some work and confusion which member is
used.
diff --git a/src/printer_yang.c b/src/printer_yang.c
index 1067250..a173084 100644
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -2355,8 +2355,8 @@
yprc_feature(ctx, &module->features[u]);
}
- LY_ARRAY_FOR(modc->identities, u) {
- yprc_identity(ctx, &modc->identities[u]);
+ LY_ARRAY_FOR(module->identities, u) {
+ yprc_identity(ctx, &module->identities[u]);
}
if (!(ctx->options & LYS_PRINT_NO_SUBSTMT)) {