From c3b6d4587edc1c04c86c2504b68a41b8c77fd202 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 8 May 2019 14:39:08 -0700 Subject: Fix types that are subtly incorrect. PiperOrigin-RevId: 247294093 Change-Id: Iac8c76e50bbc15c240ae7da7f5786f9968e7057c --- test/syscalls/linux/raw_socket_ipv4.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/syscalls/linux/raw_socket_ipv4.cc b/test/syscalls/linux/raw_socket_ipv4.cc index f30fb8fe3..7c7779f3e 100644 --- a/test/syscalls/linux/raw_socket_ipv4.cc +++ b/test/syscalls/linux/raw_socket_ipv4.cc @@ -175,7 +175,7 @@ TEST_F(RawSocketTest, MultipleSocketReceive) { // Receive on socket 1. constexpr int kBufSize = sizeof(icmp) + sizeof(struct iphdr); - std::vector recv_buf1(2); + std::array recv_buf1; struct sockaddr_in src; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE(ReceiveICMP(recv_buf1[i], @@ -185,7 +185,7 @@ TEST_F(RawSocketTest, MultipleSocketReceive) { } // Receive on socket 2. - std::vector recv_buf2(2); + std::array recv_buf2; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE( ReceiveICMPFrom(recv_buf2[i], ABSL_ARRAYSIZE(recv_buf2[i]), @@ -234,7 +234,7 @@ TEST_F(RawSocketTest, RawAndPingSockets) { // Receive on socket 1, which receives the echo request and reply in // indeterminate order. constexpr int kBufSize = sizeof(icmp) + sizeof(struct iphdr); - std::vector recv_buf1(2); + std::array recv_buf1; struct sockaddr_in src; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE( -- cgit v1.2.3