validation BUGFIX use correct type for array iteration
diff --git a/src/validation.c b/src/validation.c
index 0bc3d5f..7dfb498 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -256,7 +256,7 @@
struct lysc_ext_instance *ext;
struct node_ext *rec;
- LY_ARRAY_FOR(exts, const struct lysc_ext_instance, ext) {
+ LY_ARRAY_FOR(exts, struct lysc_ext_instance, ext) {
if (ext->def->plugin && ext->def->plugin->validate) {
rec = malloc(sizeof *rec);
LY_CHECK_ERR_RET(!rec, LOGMEM(LYD_CTX(node)), LY_EMEM);