mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-11 10:02:47 +00:00
fix_return_err
This commit is contained in:
@@ -461,7 +461,7 @@ ssize_t sys_write(int fd, const void *buf, size_t nbyte)
|
||||
/* syscall: "lseek" ret: "off_t" args: "int" "off_t" "int" */
|
||||
size_t sys_lseek(int fd, size_t offset, int whence)
|
||||
{
|
||||
size_t ret = lseek(fd, offset, whence);
|
||||
ssize_t ret = lseek(fd, offset, whence);
|
||||
return (ret < 0 ? GET_ERRNO() : ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user