fs/inode/fs_fileopen.c: use nx_close instead of close
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
1115452061
commit
1577726f05
|
@ -102,7 +102,7 @@ int file_open(FAR struct file *filep, FAR const char *path, int oflags, ...)
|
|||
ret = file_detach(fd, filep);
|
||||
if (ret < 0)
|
||||
{
|
||||
close(fd);
|
||||
nx_close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue