diff options
Diffstat (limited to 'test/syscalls/linux/tcp_socket.cc')
-rw-r--r-- | test/syscalls/linux/tcp_socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/tcp_socket.cc b/test/syscalls/linux/tcp_socket.cc index bbcb7e4fd..9c0ff8780 100644 --- a/test/syscalls/linux/tcp_socket.cc +++ b/test/syscalls/linux/tcp_socket.cc @@ -706,7 +706,7 @@ TEST_P(TcpSocketTest, TcpInq) { std::vector<char> control(CMSG_SPACE(sizeof(int))); size = sizeof(buf); struct iovec iov; - for (int i = 0; size != 0; i += kChunk) { + while (size != 0) { msg.msg_control = &control[0]; msg.msg_controllen = control.size(); |