diff options
author | Tamir Duberstein <tamird@google.com> | 2021-10-14 18:33:26 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-14 18:36:09 -0700 |
commit | 1711fd9efe86948198d836faf060e7dea60bae8d (patch) | |
tree | 3f887f0ff91b194bdf53c766c241c3ee69d7cc37 /test/syscalls/linux/tcp_socket.cc | |
parent | 6f4fcc4bac81f0fc73712b0216e3ed50b056a925 (diff) |
Fix compiler warnings
PiperOrigin-RevId: 403241314
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(); |