mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
fs/setfd: correct the return value
Change-Id: I766f3760e7167a579b73673c44b70847ee06850b Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
ef5d204fd2
commit
f56e0e004b
@@ -143,6 +143,8 @@ int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
||||
{
|
||||
filep->f_oflags &= ~O_CLOEXEC;
|
||||
}
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -146,6 +146,8 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap)
|
||||
{
|
||||
psock->s_flags &= ~_SF_CLOEXEC;
|
||||
}
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user