Skip to content

Commit

Permalink
fix_return
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzhuzhus authored and BernardXiong committed Aug 24, 2024
1 parent afa17ed commit d086039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/dfs/dfs_v2/src/dfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ int sys_dup(int oldfd)
#ifdef RT_USING_SMART
return (sysret_t)newfd;
#else
return newfd;
return newfd;
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion components/dfs/dfs_v2/src/dfs_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

This comment has been minimized.

Copy link
@mysterywolf

mysterywolf Aug 24, 2024

Member

EPERM 正值


return -1;
}
Expand Down

0 comments on commit d086039

Please sign in to comment.