libyang REFACTOR general cast cleanup
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 679327f..72357c9 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -674,10 +674,10 @@
lysc_node_action_free(struct ly_ctx *ctx, struct lysc_node_action *action)
{
if (action->input.nodetype) {
- lysc_node_free_(ctx, (struct lysc_node *)&action->input);
+ lysc_node_free_(ctx, &action->input.node);
}
if (action->output.nodetype) {
- lysc_node_free_(ctx, (struct lysc_node *)&action->output);
+ lysc_node_free_(ctx, &action->output.node);
}
}