mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix compiler warnings
PiperOrigin-RevId: 403241314
This commit is contained in:
committed by
gVisor bot
parent
6f4fcc4bac
commit
1711fd9efe
@@ -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());
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user