From 9b5008d4874eecf802e9cb292bba79c7c462e816 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sat, 22 Dec 2007 18:02:43 +0200 Subject: ubi-utils: some renames Since there is often confusion what "eb" is - physical or logical eraseblock. Fix libubi and change "eb" to "leb". Signed-off-by: Artem Bityutskiy --- ubi-utils/src/peb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ubi-utils/src/peb.c') diff --git a/ubi-utils/src/peb.c b/ubi-utils/src/peb.c index 08b770f..160a463 100644 --- a/ubi-utils/src/peb.c +++ b/ubi-utils/src/peb.c @@ -36,7 +36,7 @@ peb_cmp(peb_t eb_1, peb_t eb_2) } int -peb_new(uint32_t eb_num, uint32_t eb_size, peb_t *peb) +peb_new(uint32_t eb_num, uint32_t peb_size, peb_t *peb) { int rc = 0; @@ -47,7 +47,7 @@ peb_new(uint32_t eb_num, uint32_t eb_size, peb_t *peb) } res->num = eb_num; - res->size = eb_size; + res->size = peb_size; res->data = (uint8_t*) malloc(res->size * sizeof(uint8_t)); if (!res->data) { rc = -ENOMEM; -- cgit v1.2.3