summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhou Yanjie <[email protected]>2019-02-05 14:55:11 +0800
committerZhou Yanjie <[email protected]>2019-02-05 14:55:11 +0800
commitad114480246d94839bbd016b62ccc9cd55c83211 (patch)
tree262ecc02aa05783a351c653247032381485636c4
parentd3f47a6574f771facaddb8602a162935e2e6b795 (diff)
X1000: mtd_nor_partition.c: 修复编译过程中的警告/Fix compile-time warnings
在第166行中,“rt_size_t length”应改为“rt_uint32_t length”。 在第200行中,“rt_size_t length”应改为“rt_uint32_t length”。 In line 166, "rt_size_t length" should be changed to "rt_uint32_t length". In line 200, "rt_size_t length" should be changed to "rt_uint32_t length". Signed-off-by: Zhou Yanjie <[email protected]>
-rwxr-xr-x[-rw-r--r--]bsp/x1000/drivers/sfc/mtd_nor_partition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/x1000/drivers/sfc/mtd_nor_partition.c b/bsp/x1000/drivers/sfc/mtd_nor_partition.c
index c41201effc..8173979608 100644..100755
--- a/bsp/x1000/drivers/sfc/mtd_nor_partition.c
+++ b/bsp/x1000/drivers/sfc/mtd_nor_partition.c
@@ -163,7 +163,7 @@ static rt_base_t mtd_part_mtd_read_id(struct rt_mtd_nor_device *dev)
return rt_mtd_nor_read_id(mtd_nor);
}
-static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offset, rt_uint8_t *buffer, rt_size_t length)
+static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offset, rt_uint8_t *buffer, rt_uint32_t length)
{
struct rt_mtd_nor_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor;
@@ -197,7 +197,7 @@ static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offse
return 0;
}
-static rt_size_t mtd_part_mtd_write(struct rt_mtd_nor_device *dev, rt_off_t offset, const rt_uint8_t *buffer, rt_size_t length)
+static rt_size_t mtd_part_mtd_write(struct rt_mtd_nor_device *dev, rt_off_t offset, const rt_uint8_t *buffer, rt_uint32_t length)
{
struct rt_mtd_nor_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor;