libyang REFACTOR rename sized array size to count
... because it reflects the fact that it may not
always (internally) be the size of the array.
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index b2aca77..56b1b2b 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -44,7 +44,7 @@
lyb_read(uint8_t *buf, size_t count, struct lyd_lyb_ctx *lybctx)
{
int parsed = 0;
- LY_ARRAY_SIZE_TYPE u;
+ LY_ARRAY_COUNT_TYPE u;
struct lyd_lyb_subtree *empty;
size_t to_read;
uint8_t meta_buf[LYB_META_BYTES];
@@ -220,13 +220,13 @@
lyb_read_start_subtree(struct lyd_lyb_ctx *lybctx)
{
uint8_t meta_buf[LYB_META_BYTES];
- LY_ARRAY_SIZE_TYPE u;
+ LY_ARRAY_COUNT_TYPE u;
if (!lybctx->subtrees) {
assert(lybctx->subtree_size == 0);
u = 0;
} else {
- u = LY_ARRAY_SIZE(lybctx->subtrees);
+ u = LY_ARRAY_COUNT(lybctx->subtrees);
}
if (u == lybctx->subtree_size) {
LY_ARRAY_CREATE_RET(lybctx->ctx, lybctx->subtrees, u + LYB_SUBTREE_STEP, LY_EMEM);
@@ -946,7 +946,7 @@
{
LY_ERR ret;
uint32_t count;
- LY_ARRAY_SIZE_TYPE u;
+ LY_ARRAY_COUNT_TYPE u;
/* read model count */
lyb_read_number(&count, sizeof count, 2, lybctx);