diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-22 18:02:43 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-22 18:02:43 +0200 |
commit | 9b5008d4874eecf802e9cb292bba79c7c462e816 (patch) | |
tree | bea969b5d3dcd833287bcebb7c4d69679767223a /ubi-utils/src/ubiupdate.c | |
parent | 30fda17fbb469aab410dce57a2c16f5e48d380a4 (diff) |
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubiupdate.c')
-rw-r--r-- | ubi-utils/src/ubiupdate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/src/ubiupdate.c b/ubi-utils/src/ubiupdate.c index 4133194..19caf5a 100644 --- a/ubi-utils/src/ubiupdate.c +++ b/ubi-utils/src/ubiupdate.c @@ -171,9 +171,9 @@ static int update_volume(libubi_t libubi, struct ubi_vol_info *vol_info) struct stat st; char *buf; - buf = malloc(vol_info->eb_size); + buf = malloc(vol_info->leb_size); if (!buf) { - errmsg("cannot allocate %d bytes of memory", vol_info->eb_size); + errmsg("cannot allocate %d bytes of memory", vol_info->leb_size); return -1; } @@ -212,7 +212,7 @@ static int update_volume(libubi_t libubi, struct ubi_vol_info *vol_info) } while (bytes) { - int tocopy = vol_info->eb_size; + int tocopy = vol_info->leb_size; if (tocopy > bytes) tocopy = bytes; |