lib: c: io: update fs_read usage
This commit is contained in:
@@ -8,7 +8,7 @@ int read(int fd, void *buf, size_t count)
|
|||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
size_t nr_read;
|
size_t nr_read;
|
||||||
kern_status_t status = fs_read(fd, count, &err, &nr_read, buf, count);
|
kern_status_t status = fs_read(fd, count, &err, buf, count, &nr_read);
|
||||||
if (status != KERN_OK) {
|
if (status != KERN_OK) {
|
||||||
return __set_errno(__errno_from_kern_status(status));
|
return __set_errno(__errno_from_kern_status(status));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user