fix_return
This commit is contained in:
parent
afa17ed343
commit
d086039608
|
@ -673,7 +673,7 @@ int sys_dup(int oldfd)
|
|||
#ifdef RT_USING_SMART
|
||||
return (sysret_t)newfd;
|
||||
#else
|
||||
return newfd;
|
||||
return newfd;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ off_t lseek(int fd, off_t offset, int whence)
|
|||
result = dfs_file_lseek(file, offset, whence);
|
||||
if (result < 0)
|
||||
{
|
||||
rt_set_errno(result);
|
||||
rt_set_errno(-EPERM);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue