From 1711fd9efe86948198d836faf060e7dea60bae8d Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 14 Oct 2021 18:33:26 -0700 Subject: Fix compiler warnings PiperOrigin-RevId: 403241314 --- test/syscalls/linux/tcp_socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls/linux/tcp_socket.cc') 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 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(); -- cgit v1.2.3