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:
parent
d3f47a6574
commit
ad11448024
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue