diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-06-09 11:55:21 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-06-09 12:07:55 +0300 |
commit | afd4899380eea1c70e2a68714b5da1c9919ccdbd (patch) | |
tree | cd5120708784139bc6a0f8881da1ed8389a065b3 /contrib/libs/liburing/test/232c93d07b74.c | |
parent | a83bd2dd3c21e38c6c0807ec5e679497ab567f24 (diff) | |
download | ydb-afd4899380eea1c70e2a68714b5da1c9919ccdbd.tar.gz |
Update contrib/libs/liburing to 2.6
3b51a9fb14de805208d11f1c077c78bb5d487e0f
Diffstat (limited to 'contrib/libs/liburing/test/232c93d07b74.c')
-rw-r--r-- | contrib/libs/liburing/test/232c93d07b74.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/liburing/test/232c93d07b74.c b/contrib/libs/liburing/test/232c93d07b74.c index a89e7aebbf..27ed403eec 100644 --- a/contrib/libs/liburing/test/232c93d07b74.c +++ b/contrib/libs/liburing/test/232c93d07b74.c @@ -65,8 +65,7 @@ static void *rcv(void *arg) int res; if (p->tcp) { - int val = 1; - + int ret, val = 1; s0 = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); res = setsockopt(s0, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)); @@ -78,7 +77,8 @@ static void *rcv(void *arg) addr.sin_family = AF_INET; addr.sin_addr.s_addr = inet_addr("127.0.0.1"); - assert(t_bind_ephemeral_port(s0, &addr) == 0); + ret = t_bind_ephemeral_port(s0, &addr); + assert(!ret); p->bind_port = addr.sin_port; } else { s0 = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); |