[vlc-devel] [PATCH 4/4] interrupt: fix inverted variable name
Zhao Zhili
quinkblack at foxmail.com
Wed Feb 3 17:04:26 UTC 2021
From: Zhao Zhili <zhilizhao at tencent.com>
---
src/misc/interrupt.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
index 972c01ebf5..cd80d8d3f3 100644
--- a/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
@@ -524,7 +524,7 @@ ssize_t vlc_sendto_i11e(int fd, const void *buf, size_t len, int flags,
}
int vlc_accept_i11e(int fd, struct sockaddr *addr, socklen_t *addrlen,
- bool blocking)
+ bool nonblock)
{
struct pollfd ufd;
@@ -534,7 +534,7 @@ int vlc_accept_i11e(int fd, struct sockaddr *addr, socklen_t *addrlen,
if (vlc_poll_i11e(&ufd, 1, -1) < 0)
return -1;
- return vlc_accept(fd, addr, addrlen, blocking);
+ return vlc_accept(fd, addr, addrlen, nonblock);
}
#else /* _WIN32 */
@@ -665,7 +665,7 @@ ssize_t vlc_sendto_i11e(int fd, const void *buf, size_t len, int flags,
}
int vlc_accept_i11e(int fd, struct sockaddr *addr, socklen_t *addrlen,
- bool blocking)
+ bool nonblock)
{
struct pollfd ufd;
@@ -675,7 +675,7 @@ int vlc_accept_i11e(int fd, struct sockaddr *addr, socklen_t *addrlen,
if (vlc_poll_i11e(&ufd, 1, -1) < 0)
return -1;
- int cfd = vlc_accept(fd, addr, addrlen, blocking);
+ int cfd = vlc_accept(fd, addr, addrlen, nonblock);
if (cfd < 0 && WSAGetLastError() == WSAEWOULDBLOCK)
errno = EAGAIN;
return cfd;
--
2.27.0
More information about the vlc-devel
mailing list