yin parser CHANGE add support for units element
diff --git a/src/parser_yin.c b/src/parser_yin.c
index f7e703c..c01528e 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -806,10 +806,12 @@
case YANG_TYPEDEF:
break;
case YANG_UNIQUE:
- ret = yin_parse_simple_elements(ctx, subelem_attrs, data, kw,
- (const char ***)subelem_info_rec->dest, YIN_ARG_TAG, Y_STR_ARG, exts);
+ ret = yin_parse_simple_elements(ctx, subelem_attrs, data, kw, (const char ***)subelem_info_rec->dest,
+ YIN_ARG_TAG, Y_STR_ARG, exts);
break;
case YANG_UNITS:
+ ret = yin_parse_simple_element(ctx, subelem_attrs, data, kw, (const char **)subelem_info_rec->dest,
+ YIN_ARG_NAME, Y_STR_ARG, exts);
break;
case YANG_USES:
break;