mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
890c1c9264
commit
f58d3c5200
@@ -49,7 +49,7 @@ static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag)
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
static rt_size_t rt_rtc_read(
|
||||
static rt_ssize_t rt_rtc_read(
|
||||
rt_device_t dev,
|
||||
rt_off_t pos,
|
||||
void* buffer,
|
||||
|
||||
Reference in New Issue
Block a user