This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ac84a51 libc/time: call _NX_OPEN/_NX_CLOSE instead of open/close
ac84a51 is described below
commit ac84a5177d6ba40dc0ca3adbb1c7a14bb0022d33
Author: liuhaitao <[email protected]>
AuthorDate: Thu Jun 4 16:38:10 2020 +0800
libc/time: call _NX_OPEN/_NX_CLOSE instead of open/close
Change-Id: I1d8a17ae7cac11e445dba25a8699f98186910568
Signed-off-by: liuhaitao <[email protected]>
---
libs/libc/time/lib_localtime.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/libc/time/lib_localtime.c b/libs/libc/time/lib_localtime.c
index e784d52..2ee99fd 100644
--- a/libs/libc/time/lib_localtime.c
+++ b/libs/libc/time/lib_localtime.c
@@ -598,14 +598,14 @@ static int tzload(FAR const char *name,
goto oops;
}
- fid = open(name, O_RDONLY | O_BINARY);
+ fid = _NX_OPEN(name, O_RDONLY | O_BINARY);
if (fid < 0)
{
goto oops;
}
nread = _NX_READ(fid, up->buf, sizeof up->buf);
- if (close(fid) < 0 || nread <= 0)
+ if (_NX_CLOSE(fid) < 0 || nread <= 0)
{
goto oops;
}