fix test_sockets_msgapi_cmsg unit test (msvc gives me "warning C4706: assignment within conditional expression")

This commit is contained in:
goldsimon 2017-04-25 23:08:53 +02:00
parent eb269e61b5
commit 842a235a68

View File

@ -524,7 +524,7 @@ static void test_sockets_msgapi_cmsg(int domain)
fail_unless(cmsg != NULL);
fail_unless(cmsg->cmsg_len > 0);
fail_unless(cmsg->cmsg_level == IPPROTO_IP);
fail_unless(cmsg->cmsg_type = IP_PKTINFO);
fail_unless(cmsg->cmsg_type == IP_PKTINFO);
/* Verify message data */
pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg);