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 <zhou_yan_jie@163.com>
This commit is contained in:
Zhou Yanjie 2019-02-05 14:55:11 +08:00
parent d3f47a6574
commit ad11448024
1 changed files with 2 additions and 2 deletions

4
bsp/x1000/drivers/sfc/mtd_nor_partition.c Normal file → Executable file
View File

@ -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); 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_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor; 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; 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_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor; struct rt_mtd_nor_device *mtd_nor;