summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_fsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_fsync.c')
-rw-r--r--lib/libpthread/thread/thr_fsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_fsync.c b/lib/libpthread/thread/thr_fsync.c
index 5658c73..9141d47 100644
--- a/lib/libpthread/thread/thr_fsync.c
+++ b/lib/libpthread/thread/thr_fsync.c
@@ -40,9 +40,9 @@ fsync(int fd)
{
int ret;
- if ((ret = _thread_fd_lock(fd, FD_RDWR, NULL, __FILE__, __LINE__)) == 0) {
+ if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) {
ret = _thread_sys_fsync(fd);
- _thread_fd_unlock(fd, FD_RDWR);
+ _FD_UNLOCK(fd, FD_RDWR);
}
return (ret);
}
OpenPOWER on IntegriCloud