Fix compiler warnings

PiperOrigin-RevId: 403241314
This commit is contained in:
Tamir Duberstein
2021-10-14 18:36:09 -07:00
committed by gVisor bot
parent 6f4fcc4bac
commit 1711fd9efe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ TEST_P(UDPSocketPairTest, TClassRecvMismatch) {
// This should only test AF_INET6 sockets for the mismatch behavior.
SKIP_IF(GetParam().domain != AF_INET6);
// IPV6_RECVTCLASS is only valid for SOCK_DGRAM and SOCK_RAW.
SKIP_IF((GetParam().type != SOCK_DGRAM) | (GetParam().type != SOCK_RAW));
SKIP_IF((GetParam().type != SOCK_DGRAM) || (GetParam().type != SOCK_RAW));
auto sockets = ASSERT_NO_ERRNO_AND_VALUE(NewSocketPair());
+1 -1
View File
@@ -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();