aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/src
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-26 08:47:03 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-08 19:07:26 +0300
commitd41747f327b260c2fb470775fb9dc78d49a4d79e (patch)
tree678421607e077bc0000731db5a928d92363e0404 /ubi-utils/src
parentc900dff50cb7a6c21194aacd0ef2bfe734f7de8e (diff)
libmtd: make type_str to be an array
This is a prepearation to the coming sysfs interface support. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src')
-rw-r--r--ubi-utils/src/libmtd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ubi-utils/src/libmtd.c b/ubi-utils/src/libmtd.c
index 086ee42..faa958f 100644
--- a/ubi-utils/src/libmtd.c
+++ b/ubi-utils/src/libmtd.c
@@ -108,25 +108,25 @@ int mtd_get_dev_info(const char *node, struct mtd_dev_info *mtd)
mtd->dev_num, node);
goto out_close;
case MTD_RAM:
- mtd->type_str = "RAM-based";
+ strcpy(mtd->type_str, "RAM-based");
break;
case MTD_ROM:
- mtd->type_str = "ROM";
+ strcpy(mtd->type_str, "ROM");
break;
case MTD_NORFLASH:
- mtd->type_str = "NOR";
+ strcpy(mtd->type_str, "NOR");
break;
case MTD_NANDFLASH:
- mtd->type_str = "NAND";
+ strcpy(mtd->type_str, "NAND");
break;
case MTD_DATAFLASH:
- mtd->type_str = "DataFlash";
+ strcpy(mtd->type_str, "DataFlash");
break;
case MTD_UBIVOLUME:
- mtd->type_str = "UBI-emulated MTD";
+ strcpy(mtd->type_str, "UBI-emulated MTD");
break;
default:
- mtd->type_str = "Unknown flash type";
+ strcpy(mtd->type_str, "Unknown flash type");
break;
}