diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_connect.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_connect.c b/lib/libc_r/uthread/uthread_connect.c index 9ae03c5..d05de16 100644 --- a/lib/libc_r/uthread/uthread_connect.c +++ b/lib/libc_r/uthread/uthread_connect.c @@ -44,7 +44,7 @@ connect(int fd, const struct sockaddr * name, int namelen) struct sockaddr tmpname; int ret, tmpnamelen; - if ((ret = _thread_fd_lock(fd, FD_RDWR, NULL, __FILE__, __LINE__)) == 0) { + if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) { if ((ret = _thread_sys_connect(fd, name, namelen)) < 0) { if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EINPROGRESS) || @@ -69,7 +69,7 @@ connect(int fd, const struct sockaddr * name, int namelen) ret = -1; } } - _thread_fd_unlock(fd, FD_RDWR); + _FD_UNLOCK(fd, FD_RDWR); } return (ret); } |