This makes it clear to static analysis tools that this assignment is intentional and not a mistyped comparison. --- src/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sock.c b/src/sock.c index e3d4a6e4c..f11c5b0c4 100644 --- a/src/sock.c +++ b/src/sock.c @@ -74,7 +74,7 @@ struct connection *sock_accept_conn(struct listener *l, int *status) (((cfd = accept4(l->rx.fd, (struct sockaddr*)addr, &laddr, SOCK_NONBLOCK | (master ? SOCK_CLOEXEC : 0))) == -1) && (errno == ENOSYS || errno == EINVAL || errno == EBADF) && - (accept4_broken = 1))) + ((accept4_broken = 1)))) #endif { laddr = sizeof(*conn->src); -- 2.34.0