summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/src/libubi.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 15:40:54 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 15:40:54 +0200
commit2416fefc0adc6061212e5ccbf166c8c987385527 (patch)
tree086d7ac1479949dc5c707b3ec7788921c9d67c81 /ubi-utils/new-utils/src/libubi.c
parent6d9a03eb4f0f5c0b5f917d1092c4d851a392b9fb (diff)
ubi-utils: fix compilation warnings
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src/libubi.c')
-rw-r--r--ubi-utils/new-utils/src/libubi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/new-utils/src/libubi.c b/ubi-utils/new-utils/src/libubi.c
index 2c80fea..88215d0 100644
--- a/ubi-utils/new-utils/src/libubi.c
+++ b/ubi-utils/new-utils/src/libubi.c
@@ -1153,7 +1153,8 @@ int ubi_get_vol_info(libubi_t desc, const char *node, struct ubi_vol_info *info)
int ubi_get_vol_info1_nm(libubi_t desc, int dev_num, const char *name,
struct ubi_vol_info *info)
{
- int i, err, nlen = strlen(name);
+ int i, err;
+ unsigned int nlen = strlen(name);
struct ubi_dev_info dev_info;
if (nlen == 0) {